From: Douglas Gregor Date: Wed, 2 May 2012 14:34:16 +0000 (+0000) Subject: Replace a ConsumeAnyToken() call with ConsumeToken() when we know X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb5825dca4e95fee463fdeaddb8b729294fb4d10;p=clang Replace a ConsumeAnyToken() call with ConsumeToken() when we know we're looking at a normal token. Tiny positive impact -fsyntax-only time for . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155988 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 0d6f7dd897..e406b184a7 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -185,7 +185,7 @@ bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID, bool Parser::ExpectAndConsumeSemi(unsigned DiagID) { if (Tok.is(tok::semi) || Tok.is(tok::code_completion)) { - ConsumeAnyToken(); + ConsumeToken(); return false; }