From: Chris Lattner Date: Mon, 18 Jan 2010 22:33:01 +0000 (+0000) Subject: simplify the code for skipping in a #if 0 block. The CurLexer X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c6b193d574e0780ff0b8450ce1fde105f4881ac;p=clang 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 --- 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)) {