From: Nicolas Lesser Date: Sun, 19 May 2019 15:30:00 +0000 (+0000) Subject: Fix buildbot: Use correct Consume*() for braces. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b30c81b061a542e85b98e3d337050a9b5170db80;p=clang Fix buildbot: Use correct Consume*() for braces. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361120 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseExprCXX.cpp b/lib/Parse/ParseExprCXX.cpp index 419b755d23..595871e00d 100644 --- a/lib/Parse/ParseExprCXX.cpp +++ b/lib/Parse/ParseExprCXX.cpp @@ -3052,7 +3052,8 @@ Parser::ParseCXXDeleteExpression(bool UseGlobal, SourceLocation Start) { SkipUntil({tok::l_brace, tok::less}, StopBeforeMatch); SourceLocation RBraceLoc; bool EmitFixIt = false; - if (TryConsumeToken(tok::l_brace)) { + if (Tok.is(tok::l_brace)) { + ConsumeBrace(); SkipUntil(tok::r_brace, StopBeforeMatch); RBraceLoc = Tok.getLocation(); EmitFixIt = true;