aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-20 16:46:54 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-20 16:46:54 +0000
commitdd95d6cca5f52eabbc25e5928a60078a54a4c875 (patch)
treefc25986c9a12687de9f3aba20af43b8ccf68863e
parent01f0fcd3ea8a981d8fc0e08d4566db090e483705 (diff)
Handle another case where we should use PTHLexer as an alternative to the normal Lexer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59736 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Lex/PPMacroExpansion.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Lex/PPMacroExpansion.cpp b/lib/Lex/PPMacroExpansion.cpp
index 89885a7cc4..3ce35818f1 100644
--- a/lib/Lex/PPMacroExpansion.cpp
+++ b/lib/Lex/PPMacroExpansion.cpp
@@ -119,6 +119,8 @@ bool Preprocessor::isNextPPTokenLParen() {
IncludeStackInfo &Entry = IncludeMacroStack[i-1];
if (Entry.TheLexer)
Val = Entry.TheLexer->isNextPPTokenLParen();
+ else if (Entry.ThePTHLexer)
+ Val = Entry.ThePTHLexer->isNextPPTokenLParen();
else
Val = Entry.TheTokenLexer->isNextTokenLParen();
@@ -126,7 +128,7 @@ bool Preprocessor::isNextPPTokenLParen() {
break;
// Ran off the end of a source file?
- if (Entry.TheLexer)
+ if (Entry.ThePPLexer)
return false;
}
}