summaryrefslogtreecommitdiff
path: root/lib/Frontend/FrontendAction.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-02-08 20:51:11 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-02-08 20:51:11 +0000
commit18f51b11f444f733e57a1fed6c12279336c1863a (patch)
tree9be9cd37ef863fb16c5ecf4edacc128040928991 /lib/Frontend/FrontendAction.cpp
parent774f90458c8ac4e32862fdfc4a441b4ef27d94d1 (diff)
downloadclang-18f51b11f444f733e57a1fed6c12279336c1863a.tar.gz
Initialize builtins during modular codegen
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294512 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/FrontendAction.cpp')
-rw-r--r--lib/Frontend/FrontendAction.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Frontend/FrontendAction.cpp b/lib/Frontend/FrontendAction.cpp
index 261b3c4fa4..ed9bb5e77d 100644
--- a/lib/Frontend/FrontendAction.cpp
+++ b/lib/Frontend/FrontendAction.cpp
@@ -225,6 +225,9 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI,
CI.setFileManager(&AST->getFileManager());
CI.setSourceManager(&AST->getSourceManager());
CI.setPreprocessor(AST->getPreprocessorPtr());
+ Preprocessor &PP = CI.getPreprocessor();
+ PP.getBuiltinInfo().initializeBuiltins(PP.getIdentifierTable(),
+ PP.getLangOpts());
CI.setASTContext(&AST->getASTContext());
setCurrentInput(Input, std::move(AST));