]> granicus.if.org Git - clang/commitdiff
Change ASTUnit to only initialize the predefines buffer to the suggested predefines.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 21 Sep 2009 03:03:47 +0000 (03:03 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 21 Sep 2009 03:03:47 +0000 (03:03 +0000)
 - It isn't really clear what to do with the preprocessor here, but this is more sensible.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82431 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/ASTUnit.cpp

index 1e2ad46b93a647d4302a3183a2e197a78fb88082..d3475b5236d926ca7b127d61b4b51786b49e1d83 100644 (file)
@@ -126,7 +126,7 @@ ASTUnit *ASTUnit::LoadFromPCHFile(const std::string &Filename,
                                  AST->getSourceManager(), HeaderInfo));
   Preprocessor &PP = *AST->PP.get();
 
-  PP.setPredefines(Predefines);
+  PP.setPredefines(Reader->getSuggestedPredefines());
   PP.setCounterValue(Counter);
   Reader->setPreprocessor(PP);