diff options
Diffstat (limited to 'lib/Frontend')
-rw-r--r-- | lib/Frontend/CompilerInstance.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index 0c63910ace..b27c06a19c 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -936,7 +936,7 @@ static void checkConfigMacro(Preprocessor &PP, StringRef ConfigMacro, continue; // We only care about the predefines buffer. - if (!StringRef(Buffer->getBufferIdentifier()).equals("<built-in>")) + if (FID != PP.getPredefinesFileID()) continue; // This macro was defined on the command line, then #undef'd later. @@ -969,7 +969,7 @@ static void checkConfigMacro(Preprocessor &PP, StringRef ConfigMacro, continue; // We only care about the predefines buffer. - if (!StringRef(Buffer->getBufferIdentifier()).equals("<built-in>")) + if (FID != PP.getPredefinesFileID()) continue; PredefinedDef = Def; |