summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-04-03 03:16:36 +0000
committerDouglas Gregor <dgregor@apple.com>2013-04-03 03:16:36 +0000
commit05ba2a055df64a63a5d3c130e86e62b851343e8c (patch)
tree707f0e6b0d67b93ac695e85b0469b3ef6b2ff143 /clang/lib/Frontend
parentb9b7ae0c78d1b2f7a2b90656511c76c9d736c160 (diff)
downloadbcm5719-llvm-05ba2a055df64a63a5d3c130e86e62b851343e8c.tar.gz
bcm5719-llvm-05ba2a055df64a63a5d3c130e86e62b851343e8c.zip
Use getPredefinesFileID() appropriately.
Thanks to Argyrios for the pointer. llvm-svn: 178616
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 0c63910ace5..b27c06a19c3 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud