diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-11-12 22:21:57 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-11-12 22:21:57 +0000 |
commit | 174da89d2d4f4136dc56075176358e3a9cd8604f (patch) | |
tree | a8b6e8214f4cb4105ef0fb2dd8dd62b041b27899 /lib/Lex/PPCaching.cpp | |
parent | 0deae4b0eb085d1a34e0cb983750b5ed835c16a4 (diff) |
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
Diffstat (limited to 'lib/Lex/PPCaching.cpp')
-rw-r--r-- | lib/Lex/PPCaching.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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(); } |