mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When ObjC interop is not available, Error values are represented in ErrorObject boxes. These are full HeapObjects, but unowned refcounting ops asserted that the metadata was class metadata. This assert would be hit when destroying an ErrorObject that was weakly referenced. Expand the asserts to accept ErrorObject metadata as well. rdar://150214921
38 KiB
38 KiB