Allow ExpectAndConsume to be used with any token.
llvm-svn: 38923
This commit is contained in:
parent
6d7e634399
commit
15a00da679
|
@ -65,7 +65,7 @@ void Parser::MatchRHSPunctuation(tok::TokenKind RHSTok, SourceLocation LHSLoc,
|
|||
bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID,
|
||||
const char *Msg, tok::TokenKind SkipToTok) {
|
||||
if (Tok.getKind() == ExpectedTok) {
|
||||
ConsumeToken();
|
||||
ConsumeAnyToken();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue