[cfe-commits] r38923 - /cfe/cfe/trunk/Parse/Parser.cpp
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:25:49 PDT 2007
Author: sabre
Date: Wed Jul 11 11:25:48 2007
New Revision: 38923
URL: http://llvm.org/viewvc/llvm-project?rev=38923&view=rev
Log:
Allow ExpectAndConsume to be used with any token.
Modified:
cfe/cfe/trunk/Parse/Parser.cpp
Modified: cfe/cfe/trunk/Parse/Parser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Parse/Parser.cpp?rev=38923&r1=38922&r2=38923&view=diff
==============================================================================
--- cfe/cfe/trunk/Parse/Parser.cpp (original)
+++ cfe/cfe/trunk/Parse/Parser.cpp Wed Jul 11 11:25:48 2007
@@ -65,7 +65,7 @@
bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID,
const char *Msg, tok::TokenKind SkipToTok) {
if (Tok.getKind() == ExpectedTok) {
- ConsumeToken();
+ ConsumeAnyToken();
return false;
}
More information about the cfe-commits
mailing list