Skip to content

Commit bb62505

Browse files
committed
move code complete in else block
1 parent ecbd115 commit bb62505

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/Parse/ParseStmt.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,9 +1552,7 @@ StmtResult Parser::ParseIfStatement(SourceLocation *TrailingElseLoc) {
15521552
: diag::ext_consteval_if);
15531553
IsConsteval = true;
15541554
ConstevalLoc = ConsumeToken();
1555-
}
1556-
1557-
if (Tok.is(tok::code_completion)) {
1555+
} else if (Tok.is(tok::code_completion)) {
15581556
cutOffParsing();
15591557
Actions.CodeCompletion().CodeCompleteKeywordAfterIf(NotLocation.isValid());
15601558
return StmtError();

0 commit comments

Comments
 (0)