mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Move some type validity checking to SemaDecl::handleEndOfTranslationUnit, out of NameBinding.
Swift SVN r287
This commit is contained in:
@@ -180,10 +180,11 @@ TranslationUnitDecl *Parser::parseTranslationUnit() {
|
||||
parseDeclTopLevel(Decls);
|
||||
}
|
||||
|
||||
// Notify sema about the end of the translation unit.
|
||||
S.decl.handleEndOfTranslationUnit();
|
||||
|
||||
Result->Decls = S.Context.AllocateCopy(llvm::ArrayRef<Decl*>(Decls));
|
||||
|
||||
// Notify sema about the end of the translation unit.
|
||||
S.decl.handleEndOfTranslationUnit(Result);
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user