From: Douglas Gregor Date: Wed, 28 Jul 2010 22:12:37 +0000 (+0000) Subject: Turn off precompiled preamble support for C++ X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd0b87006b478bb573d369385aed64a58225264d;p=clang Turn off precompiled preamble support for C++ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109680 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/ASTUnit.cpp b/lib/Frontend/ASTUnit.cpp index d67a6652da..a035cd89f6 100644 --- a/lib/Frontend/ASTUnit.cpp +++ b/lib/Frontend/ASTUnit.cpp @@ -789,7 +789,8 @@ ASTUnit *ASTUnit::LoadFromCompilerInvocation(CompilerInvocation *CI, CI->getPreprocessorOpts().RetainRemappedFileBuffers = true; llvm::MemoryBuffer *OverrideMainBuffer = 0; - if (PrecompilePreamble) + // FIXME: When C++ PCH is ready, allow use of it for a precompiled preamble. + if (PrecompilePreamble && !CI->getLangOpts().CPlusPlus) OverrideMainBuffer = AST->BuildPrecompiledPreamble(); if (!AST->Parse(OverrideMainBuffer))