mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We usually have unowned values when dealing with foreign types. Make sure the implicit value ctors will do a +1 to balance the releases. In a release build we had a use after free over-releasing the object. In assert builds we had an assertion failure: Assertion failed: (value->getOwnershipKind() == OwnershipKind::Guaranteed), function forBorrowedObjectRValue, file ManagedValue.h, line 181. rdar://160232360
73 KiB
73 KiB