================
@@ -783,20 +767,17 @@ void Parser::ParseLexedAttribute(LateParsedAttribute
&LPA, bool EnterScope,
Actions.ActOnReenterFunctionContext(Actions.CurScope, D);
}
- ParseGNUAttributeArgs(&LPA.AttrName, LPA.AttrNameLoc, Attrs,
- /*EndLoc=*/nullptr, /*ScopeName=*/nullptr,
- SourceLocation(), ParsedAttr::Form::GNU(),
- /*D=*/nullptr);
+ ParsedAttributes Parsed = ParseLexedAttributeTokens(LPA);
+ Attrs.takeAllAppendingFrom(Parsed);
if (HasFuncScope)
Actions.ActOnExitFunctionContext();
} else if (OutAttrs) {
----------------
rapidsna wrote:
Could you please cherry-pick it to downstream (swiftlang)? If this is
unreachable even in the downstream, we should just remove it.
https://github.com/llvm/llvm-project/pull/206689
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits