Commit Graph

1 Commits

Author SHA1 Message Date
Joe Groff
4becd80fff SIL: Pick default ARC convention for witness thunks based on the kind of the original decl.
Enum constructors take their arguments +1 by default, but they can now be used to satisfy protocol static member
requirements, which take arguments +0 by default. Type lowering would accidentally use the kind of the witness
to determine the conventions for the witness thunk, leading to a miscompile when the requirement is called through
the protocol. Fixes rdar://74117738.
2021-02-08 15:24:10 -08:00