From: Douglas Gregor Date: Sun, 26 Apr 2009 03:57:37 +0000 (+0000) Subject: Make sure to pull in the target builtin records when initialize the AST context,... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a9cbedca55edd4a11330c2426298a3033a873b5;p=clang 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70111 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 3466d7040d..95bb1ba04b 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -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); }