]> granicus.if.org Git - clang/commitdiff
Use PushIncludeMacroStack() instead of manually manipulating the include stack.
authorTed Kremenek <kremenek@apple.com>
Wed, 12 Nov 2008 22:21:57 +0000 (22:21 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 12 Nov 2008 22:21:57 +0000 (22:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59181 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPCaching.cpp

index 1af79b4ba37585aa3a911ca2ecfc09a3ed0af56f..1f39088d7f0b6988dff16d9e907c5a31a95cb1b3 100644 (file)
@@ -76,10 +76,7 @@ void Preprocessor::EnterCachingLexMode() {
   if (InCachingLexMode())
     return;
 
-  IncludeMacroStack.push_back(IncludeStackInfo(CurLexer, CurDirLookup,
-                                               CurTokenLexer));
-  CurLexer = 0;
-  CurTokenLexer = 0;
+  PushIncludeMacroStack();
 }