| // RUN: %target-sil-opt %s | %target-sil-opt | %FileCheck %s |
| |
| sil_stage canonical |
| |
| import Builtin |
| |
| // CHECK-LABEL: sil [ossa] @borrow_argument_test : $@convention(thin) (@guaranteed Builtin.NativeObject) -> () { |
| // CHECK: bb1([[PHIBBARG:%.*]] : @guaranteed $Builtin.NativeObject): |
| // CHECK: end_borrow [[PHIBBARG]] : $Builtin.NativeObject |
| sil [ossa] @borrow_argument_test : $@convention(thin) (@guaranteed Builtin.NativeObject) -> () { |
| bb0(%0 : @guaranteed $Builtin.NativeObject): |
| br bb1(%0 : $Builtin.NativeObject) |
| |
| bb1(%1 : @guaranteed $Builtin.NativeObject): |
| end_borrow %1 : $Builtin.NativeObject |
| %4 = tuple() |
| return %4 : $() |
| } |
| |