Skip to content

Commit 940b0ba

Browse files
Clear attribute.
1 parent 28d3c6c commit 940b0ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2265,7 +2265,7 @@ Type TypeResolver::resolveAttributedType(TypeAttributes &attrs,
22652265
diagnose(attrs.getLoc(TAK_convention),
22662266
diag::invalid_autoclosure_and_convention_attributes,
22672267
attrs.getConvention());
2268-
attrs.clearAttribute(TAK_autoclosure);
2268+
attrs.clearAttribute(TAK_convention);
22692269
}
22702270
}
22712271
}

0 commit comments

Comments
 (0)