================
@@ -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) {
----------------
Holo-xy wrote:
There isn't a caller that reaches that path currently, but I'm not sure if
there's a scenario where we would have 0 decls and a non-null OutAttrs
(ParseLexedCAttribute had that guard before my first unify PR).
https://github.com/llvm/llvm-project/pull/206689
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits