blob: 207a9bb771205776a4621808cf4fbcfc43e42b4b [file] [log] [blame]
// 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>:9:
// CHECK-NOT: call void @swift_setDeallocating
// CHECK: call void @swift_deallocUninitializedObject