mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Those tests rely on lexical object lifetimes. But lifetimes are only guaranteed for "variables" but not for temporary objects. Storing those objects in variables fixes the issue. This fixes the tests when running them in optimize mode and when OSSA modules are enabled. This is part of rdar://140229560.
10 KiB
10 KiB