From dd95d6cca5f52eabbc25e5928a60078a54a4c875 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 20 Nov 2008 16:46:54 +0000 Subject: [PATCH] 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 --- lib/Lex/PPMacroExpansion.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } }