summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPMacroExpansion.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-19 22:43:49 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-19 22:43:49 +0000
commita2c3c8d71cea0595f860e144f92970a1a37e5f0e (patch)
tree9c2a47c40abf51039d2ab0f0a861d69deca215a0 /clang/lib/Lex/PPMacroExpansion.cpp
parent11cfbb473eaf1bf14080e79487c016bbc553d310 (diff)
downloadbcm5719-llvm-a2c3c8d71cea0595f860e144f92970a1a37e5f0e.tar.gz
bcm5719-llvm-a2c3c8d71cea0595f860e144f92970a1a37e5f0e.zip
Move more cases of using 'CurLexer' to 'CurPPLexer'.
Use PTHLexer::isNextPPTokenLParen() when using the PTHLexer. llvm-svn: 59671
Diffstat (limited to 'clang/lib/Lex/PPMacroExpansion.cpp')
-rw-r--r--clang/lib/Lex/PPMacroExpansion.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp
index abb21cb4745..53e1f8dc710 100644
--- a/clang/lib/Lex/PPMacroExpansion.cpp
+++ b/clang/lib/Lex/PPMacroExpansion.cpp
@@ -104,6 +104,8 @@ bool Preprocessor::isNextPPTokenLParen() {
unsigned Val;
if (CurLexer)
Val = CurLexer->isNextPPTokenLParen();
+ else if (CurPTHLexer)
+ Val = CurPTHLexer->isNextPPTokenLParen();
else
Val = CurTokenLexer->isNextTokenLParen();
OpenPOWER on IntegriCloud