aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-26 03:57:37 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-26 03:57:37 +0000
commit7a9cbedca55edd4a11330c2426298a3033a873b5 (patch)
treedcc51700cfa6842f68f1f2e74d03efe7372a3779
parent69a6b6d7fcf57fa0603214d46484aa2c73f5d884 (diff)
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
-rw-r--r--lib/AST/ASTContext.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}