aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-18 22:33:01 +0000
committerChris Lattner <sabre@nondot.org>2010-01-18 22:33:01 +0000
commit2c6b193d574e0780ff0b8450ce1fde105f4881ac (patch)
tree3746e9c3be471b3cd82b1d463e15e150a0143a59
parent3c7313d96cd4a18cd8c1fcd3ddd8128c2fcbe58f (diff)
simplify the code for skipping in a #if 0 block. The CurLexer
pointer is always non-null because the PTH case exits earlier in the method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93794 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Lex/PPDirectives.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Lex/PPDirectives.cpp b/lib/Lex/PPDirectives.cpp
index aa807f800d..dc5b204216 100644
--- a/lib/Lex/PPDirectives.cpp
+++ b/lib/Lex/PPDirectives.cpp
@@ -160,10 +160,7 @@ void Preprocessor::SkipExcludedConditionalBlock(SourceLocation IfTokenLoc,
CurPPLexer->LexingRawMode = true;
Token Tok;
while (1) {
- if (CurLexer)
- CurLexer->Lex(Tok);
- else
- CurPTHLexer->Lex(Tok);
+ CurLexer->Lex(Tok);
// If this is the end of the buffer, we have an error.
if (Tok.is(tok::eof)) {