Use getPredefinesFileID() appropriately.
Thanks to Argyrios for the pointer.
llvm-svn: 178616
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 0c63910..b27c06a 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -936,7 +936,7 @@
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 @@
continue;
// We only care about the predefines buffer.
- if (!StringRef(Buffer->getBufferIdentifier()).equals("<built-in>"))
+ if (FID != PP.getPredefinesFileID())
continue;
PredefinedDef = Def;