From: Ted Kremenek Date: Wed, 12 Nov 2008 22:21:57 +0000 (+0000) Subject: Use PushIncludeMacroStack() instead of manually manipulating the include stack. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=174da89d2d4f4136dc56075176358e3a9cd8604f;p=clang Use PushIncludeMacroStack() instead of manually manipulating the include stack. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59181 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/PPCaching.cpp b/lib/Lex/PPCaching.cpp index 1af79b4ba3..1f39088d7f 100644 --- a/lib/Lex/PPCaching.cpp +++ b/lib/Lex/PPCaching.cpp @@ -76,10 +76,7 @@ void Preprocessor::EnterCachingLexMode() { if (InCachingLexMode()) return; - IncludeMacroStack.push_back(IncludeStackInfo(CurLexer, CurDirLookup, - CurTokenLexer)); - CurLexer = 0; - CurTokenLexer = 0; + PushIncludeMacroStack(); }