]> granicus.if.org Git - clang/commitdiff
Make sure to pull in the target builtin records when initialize the AST context,...
authorDouglas Gregor <dgregor@apple.com>
Sun, 26 Apr 2009 03:57:37 +0000 (03:57 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 26 Apr 2009 03:57:37 +0000 (03:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70111 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTContext.cpp

index 3466d7040d4716c66b657ffd39e7a36ec986128e..95bb1ba04b8ab292f9ce5cb7e4a79066325fde0b 100644 (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);
 }