Make sure to pull in the target builtin records when initialize the AST context, even if we're not going to initialize the __builin_* identifiers

llvm-svn: 70111
This commit is contained in:
Douglas Gregor 2009-04-26 03:57:37 +00:00
parent 1d46a1f8a5
commit 2ef5dc4fc6
1 changed files with 1 additions and 1 deletions

View File

@ -41,6 +41,7 @@ ASTContext::ASTContext(const LangOptions& LOpts, SourceManager &SM,
if (size_reserve > 0) Types.reserve(size_reserve);
InitBuiltinTypes();
TUDecl = TranslationUnitDecl::Create(*this);
BuiltinInfo.InitializeTargetBuiltins(Target);
if (InitializeBuiltins)
this->InitializeBuiltins(idents);
}
@ -94,7 +95,6 @@ ASTContext::~ASTContext() {
}
void ASTContext::InitializeBuiltins(IdentifierTable &idents) {
BuiltinInfo.InitializeTargetBuiltins(Target);
BuiltinInfo.InitializeBuiltins(idents, LangOpts.NoBuiltin);
}