From 6b7eb00be7ee80ad3137cf051e506e6417c8e93d Mon Sep 17 00:00:00 2001 From: Joshua Garnham Date: Sun, 20 Dec 2015 00:11:07 +0000 Subject: [PATCH] Removed reference to bug ID --- lib/Parse/ParsePattern.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Parse/ParsePattern.cpp b/lib/Parse/ParsePattern.cpp index 766abfdf830a5..01ad685d30513 100644 --- a/lib/Parse/ParsePattern.cpp +++ b/lib/Parse/ParsePattern.cpp @@ -238,8 +238,7 @@ Parser::parseParameterClause(SourceLoc &leftParenLoc, // Check if token is @ sign ergo an attribute if (Tok.is(tok::at_sign)) { Token nextToken = peekToken(); - // Fix for SR215 - // Check if attribute is invalid type attribute + // Check if attribute is invalid type attribute // and actually a declaration attribute if (TypeAttributes::getAttrKindFromString(nextToken.getText()) == TAK_Count && DeclAttribute::getAttrKindFromString(nextToken.getText()) != TAK_Count) { @@ -247,7 +246,7 @@ Parser::parseParameterClause(SourceLoc &leftParenLoc, SourceLoc AttrLoc = consumeToken(tok::identifier); diagnose(AtLoc, diag::decl_attribute_applied_to_type) .fixItRemove(SourceRange(AtLoc, AttrLoc)) - .fixItInsert(StartLoc, "@" + nextToken.getText().str()+" "); + .fixItInsert(StartLoc, "@" + nextToken.getText().str()+" "); } }