Allow ExpectAndConsume to be used with any token.

llvm-svn: 38923
This commit is contained in:
Chris Lattner 2006-08-15 04:10:31 +00:00
parent 6d7e634399
commit 15a00da679
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}