mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Preserve ownership for empty non-trivial structs. This currently applies to ~Escapable structs. People often use empty structs to investigate language behavior. They should behave just like a struct that wraps a pointer. Previously, this would crash later during OSSA lifetime completion: Assertion failed: (isa<UnreachableInst>(block->getTerminator())), function computeRegion, file OSSALifetimeCompletion.cpp.
126 KiB
126 KiB