diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-11-19 22:21:33 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-11-19 22:21:33 +0000 |
commit | 76c3441a4eef8d605831f0e16e8f996efebedef5 (patch) | |
tree | 7a75cd116a0aea338a229b7ee3490c0c03d511e9 /clang/lib/Lex/PPMacroExpansion.cpp | |
parent | f4d95fdce9101b959c093f08d6df881886edcc07 (diff) | |
download | bcm5719-llvm-76c3441a4eef8d605831f0e16e8f996efebedef5.tar.gz bcm5719-llvm-76c3441a4eef8d605831f0e16e8f996efebedef5.zip |
When using a PTHLexer, use DiscardToEndOfLine() instead of ReadToEndOfLine().
llvm-svn: 59668
Diffstat (limited to 'clang/lib/Lex/PPMacroExpansion.cpp')
-rw-r--r-- | clang/lib/Lex/PPMacroExpansion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp index 1d4d85a8973..abb21cb4745 100644 --- a/clang/lib/Lex/PPMacroExpansion.cpp +++ b/clang/lib/Lex/PPMacroExpansion.cpp @@ -111,7 +111,7 @@ bool Preprocessor::isNextPPTokenLParen() { // We have run off the end. If it's a source file we don't // examine enclosing ones (C99 5.1.1.2p4). Otherwise walk up the // macro stack. - if (CurLexer) + if (CurPPLexer) return false; for (unsigned i = IncludeMacroStack.size(); i != 0; --i) { IncludeStackInfo &Entry = IncludeMacroStack[i-1]; |