swift
9f76f2ca - [cxx-interop] Fix copy/destroy of enums with FRT payloads

Commit
20 hours ago
[cxx-interop] Fix copy/destroy of enums with FRT payloads Multi-payload enums whose payloads are all foreign reference types picked the TaggedRefcounted strategy, which has no way to call per-type custom retain/release functions. This crashed IRGen with assertions enabled and leaked references without them. Fall back to per-payload copy/destroy for Custom refcounting. Also relax a stale assertion in the single-payload strategy that fired for FRT payloads with more than one empty case. rdar://193081387
Author
Gabor Horvath
Committer
Gabor Horvath
Parents
Loading