Mercurial > hg > CbC > CbC_llvm
changeset 55:cdd58a41c04c
minor fix
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 19 Jan 2014 02:53:05 +0900 |
parents | d48478628b39 |
children | bdef5c940791 |
files | tools/clang/lib/Lex/PPDirectives.cpp |
diffstat | 1 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/clang/lib/Lex/PPDirectives.cpp Sun Jan 19 02:50:31 2014 +0900 +++ b/tools/clang/lib/Lex/PPDirectives.cpp Sun Jan 19 02:53:05 2014 +0900 @@ -2398,14 +2398,10 @@ SavedToken = Tok; SavedDepth = IncludeMacroStack.size(); SavedTokenFlag = true; - bool isExit = false; - if (CurPPLexer == NULL) { - ExitCachingLexMode(); - isExit = true; - } - CurPPLexer->ParsingPreprocessorDirective = true; + + CurLexer->ParsingPreprocessorDirective = true; if (CurLexer) CurLexer->SetKeepWhitespaceMode(false); - CurPPLexer->MIOpt.resetImmediatelyAfterTopLevelIfndef(); + CurLexer->MIOpt.resetImmediatelyAfterTopLevelIfndef(); ++NumDirectives; // number of preprocessor directives. const int Len = strlen(Name); const DirectoryLookup *LookupFrom = 0;