Mercurial > hg > CbC > CbC_llvm
changeset 91:ae2ab28b985c
fix bug: When we check the file is ended or not on SearchCodeSegmentDeclaration, we look up not the current lexer but the current file lexer.
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 16 Apr 2015 19:49:22 +0900 |
parents | 2ddce554fef0 |
children | 8a1cd0ffee6e |
files | tools/clang/lib/Parse/ParseCbC.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/clang/lib/Parse/ParseCbC.cpp Thu Apr 16 17:33:03 2015 +0900 +++ b/tools/clang/lib/Parse/ParseCbC.cpp Thu Apr 16 19:49:22 2015 +0900 @@ -997,7 +997,7 @@ } bool Parser::SkipAnyUntil(tok::TokenKind T, SkipUntilFlags Flags){ - const PreprocessorLexer *L = PP.getCurrentLexer(); + const PreprocessorLexer *L = PP.getCurrentFileLexer(); while(1){ if(Tok.is(T)){ if (HasFlagsSet(Flags, StopBeforeMatch)) { @@ -1007,7 +1007,7 @@ } return true; } - else if(!PP.isCurrentLexer(L)){ + else if(PP.getCurrentFileLexer() != L){ return false; }