Skip to content

Commit 302bd61

Browse files
committed
use punctuator spelling
1 parent a83afe5 commit 302bd61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Parse/ParseStmt.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,8 @@ StmtResult Parser::ParseCaseStatement(ParsedStmtContext StmtCtx,
836836

837837
Diag(ExpectedLoc, diag::err_expected_after)
838838
<< "'case'" << tok::colon
839-
<< FixItHint::CreateInsertion(ExpectedLoc, ":");
839+
<< FixItHint::CreateInsertion(ExpectedLoc,
840+
tok::getPunctuatorSpelling(tok::colon));
840841

841842
ColonLoc = ExpectedLoc;
842843
}

0 commit comments

Comments
 (0)