Lift nested type lookup fast-pathing up to FileUnit.

We use this to avoid circularity issues in serialization; we'd like to
extend that to the Clang importer. This is only necessary because we
can't look up a single member at a time, but it can still fix issues
in the short term.

This commit should have no effect on functionality.
This commit is contained in:
Jordan Rose
2017-07-13 14:07:00 -07:00
parent 88aa00e7de
commit 03e1e3b6e0
6 changed files with 33 additions and 19 deletions

View File

@@ -1363,7 +1363,7 @@ TypeDecl *ModuleFile::lookupLocalType(StringRef MangledName) {
}
TypeDecl *ModuleFile::lookupNestedType(Identifier name,
const ValueDecl *parent) {
const NominalTypeDecl *parent) {
PrettyStackTraceModuleFile stackEntry(*this);
if (!NestedTypeDecls)