forked from OSchip/llvm-project
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:
parent
1d46a1f8a5
commit
2ef5dc4fc6
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue