Skip to content

Commit 6b7eb00

Browse files
committed
Removed reference to bug ID
1 parent 429524a commit 6b7eb00

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Parse/ParsePattern.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,16 +238,15 @@ Parser::parseParameterClause(SourceLoc &leftParenLoc,
238238
// Check if token is @ sign ergo an attribute
239239
if (Tok.is(tok::at_sign)) {
240240
Token nextToken = peekToken();
241-
// Fix for SR215
242-
// Check if attribute is invalid type attribute
241+
// Check if attribute is invalid type attribute
243242
// and actually a declaration attribute
244243
if (TypeAttributes::getAttrKindFromString(nextToken.getText()) == TAK_Count
245244
&& DeclAttribute::getAttrKindFromString(nextToken.getText()) != TAK_Count) {
246245
SourceLoc AtLoc = consumeToken(tok::at_sign);
247246
SourceLoc AttrLoc = consumeToken(tok::identifier);
248247
diagnose(AtLoc, diag::decl_attribute_applied_to_type)
249248
.fixItRemove(SourceRange(AtLoc, AttrLoc))
250-
.fixItInsert(StartLoc, "@" + nextToken.getText().str()+" ");
249+
.fixItInsert(StartLoc, "@" + nextToken.getText().str()+" ");
251250
}
252251
}
253252

0 commit comments

Comments
 (0)