Use getPredefinesFileID() appropriately.

Thanks to Argyrios for the pointer.

llvm-svn: 178616
This commit is contained in:
Douglas Gregor
2013-04-03 03:16:36 +00:00
parent b9b7ae0c78
commit 05ba2a055d

View File

@@ -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;