diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-04-03 03:16:36 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-04-03 03:16:36 +0000 |
commit | 670b2e6e9e75ca5d816899f6c1ac97137ba6f206 (patch) | |
tree | 76715a56ce57e59d16642a5a3599587e9d90ad17 /lib/Frontend | |
parent | d3ec874e840c7cfcb4447102bb0deb38bac94649 (diff) |
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
Diffstat (limited to 'lib/Frontend')
-rw-r--r-- | lib/Frontend/CompilerInstance.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index 0c63910ace..b27c06a19c 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/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; |