mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
d981bb1d96
Mangle escapeness as part of the type. Part of: SR-5441 rdar://36116691
16 lines
356 B
Swift
16 lines
356 B
Swift
// RUN: %target-swift-frontend -primary-file %s -emit-ir -o - | %FileCheck %s
|
|
|
|
func f() -> Bool? { return nil }
|
|
|
|
({
|
|
guard var b = f() else { return }
|
|
let c = { b = true }
|
|
_ = (b, c)
|
|
})()
|
|
|
|
// CHECK-LABEL: @"$S9alloc_boxyyXEfU_"
|
|
// CHECK: <label>:8:
|
|
// CHECK-NOT: call void @swift_setDeallocating
|
|
// CHECK: call void @swift_deallocUninitializedObject
|
|
|