]> granicus.if.org Git - clang/commitdiff
Revert an incorrect part of my previuos patch.
authorLauro Ramos Venancio <lauro.venancio@gmail.com>
Mon, 25 Feb 2008 19:08:51 +0000 (19:08 +0000)
committerLauro Ramos Venancio <lauro.venancio@gmail.com>
Mon, 25 Feb 2008 19:08:51 +0000 (19:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47553 91177308-0d34-0410-b5e6-96231b3b80d8

Lex/Preprocessor.cpp

index dbff1ec2813950a22facbec08290d8185492e938..be2ffefaa7ba08597ba8a59bd1458065ed7ca6b8 100644 (file)
@@ -2517,7 +2517,7 @@ void Preprocessor::HandleEndifDirective(Token &EndifToken) {
   
   // If this the end of a top-level #endif, inform MIOpt.
   if (CurLexer->getConditionalStackDepth() == 0)
-    CurLexer->MIOpt.EnterTopLevelConditional();
+    CurLexer->MIOpt.ExitTopLevelConditional();
   
   assert(!CondInfo.WasSkipping && !CurLexer->LexingRawMode &&
          "This code should only be reachable in the non-skipping case!");