Skip to content

Commit e9b89e9

Browse files
committed
Fix CustomAttr::clone() to include argument list and pattern binding initializer
1 parent 901ffb7 commit e9b89e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/AST/Attr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1904,7 +1904,7 @@ class CustomAttr final : public DeclAttribute {
19041904

19051905
/// Create a copy of this attribute.
19061906
CustomAttr *clone(ASTContext &ctx) const {
1907-
return create(ctx, AtLoc, getTypeExpr(), isImplicit());
1907+
return create(ctx, AtLoc, getTypeExpr(), initContext, argList, isImplicit());
19081908
}
19091909

19101910
private:

0 commit comments

Comments
 (0)