From ee12322372c07b890aea4faa6f08e86b157b583e Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Wed, 8 Feb 2017 20:51:11 +0000 Subject: Initialize builtins during modular codegen llvm-svn: 294512 --- clang/lib/Frontend/FrontendAction.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib/Frontend/FrontendAction.cpp') diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp index 261b3c4..ed9bb5e 100644 --- a/clang/lib/Frontend/FrontendAction.cpp +++ b/clang/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)); -- cgit v1.1