diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-11-20 16:46:54 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-11-20 16:46:54 +0000 |
commit | dd95d6cca5f52eabbc25e5928a60078a54a4c875 (patch) | |
tree | fc25986c9a12687de9f3aba20af43b8ccf68863e | |
parent | 01f0fcd3ea8a981d8fc0e08d4566db090e483705 (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.cpp | 4 |
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; } } |