]> granicus.if.org Git - clang/commitdiff
simplify the code for skipping in a #if 0 block. The CurLexer
authorChris Lattner <sabre@nondot.org>
Mon, 18 Jan 2010 22:33:01 +0000 (22:33 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 18 Jan 2010 22:33:01 +0000 (22:33 +0000)
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

lib/Lex/PPDirectives.cpp

index aa807f800d3ed02af4dfd1fe4b417197114bfc13..dc5b204216e85aa59a1b503f365bd7ea934742e8 100644 (file)
@@ -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)) {