Skip to content

Commit 2713872

Browse files
committed
Handle @_section -> @section rename as a warning only
1 parent 00fc1fa commit 2713872

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Parse/ParseDecl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4351,9 +4351,9 @@ ParserStatus Parser::parseDeclAttribute(DeclAttributes &Attributes,
43514351

43524352
// Historical name for @section and @used
43534353
checkInvalidAttrName("_section", "section", DeclAttrKind::Section,
4354-
diag::attr_name_close_match);
4354+
diag::attr_renamed_warning);
43554355
checkInvalidAttrName("_used", "used", DeclAttrKind::Used,
4356-
diag::attr_name_close_match);
4356+
diag::attr_renamed_warning);
43574357

43584358
// Historical name for 'nonisolated'.
43594359
if (!DK && Tok.getText() == "actorIndependent") {

0 commit comments

Comments
 (0)