Move some type validity checking to SemaDecl::handleEndOfTranslationUnit, out of NameBinding.

Swift SVN r287
This commit is contained in:
Chris Lattner
2011-03-19 06:41:26 +00:00
parent 60cdb19d02
commit 6807ad7fb1
4 changed files with 33 additions and 24 deletions

View File

@@ -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;
}