Fix buildbot: Use correct Consume*() for braces.

llvm-svn: 361120
This commit is contained in:
Nicolas Lesser
2019-05-19 15:30:00 +00:00
parent f53d172710
commit e47ae69fa7

View File

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