forked from OSchip/llvm-project
Use getPredefinesFileID() appropriately.
Thanks to Argyrios for the pointer. llvm-svn: 178616
This commit is contained in:
parent
b9b7ae0c78
commit
05ba2a055d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue