Use getPredefinesFileID() appropriately.

Thanks to Argyrios for the pointer.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178616 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp
index 0c63910..b27c06a 100644
--- a/lib/Frontend/CompilerInstance.cpp
+++ b/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;