mirror of
https://github.com/apple/swift.git
synced 2025-12-25 12:15:36 +01:00
When compiled with optimizations, the compiler saw that C() doesn't escape and stack promoted it, which breaks the check. Deliberately escape the object into a global array beforehand to ensure it has to be on the heap. rdar://103369708