mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #30066 from gottesmm/pr-1130ca3a3a3a8cf94b05b9bb79cdecefe4a48833
This commit is contained in:
@@ -1285,3 +1285,20 @@ bb3:
|
||||
%9999 = tuple()
|
||||
return %9999 : $()
|
||||
}
|
||||
|
||||
// TODO: We can support this with time.
|
||||
//
|
||||
// CHECK-LABEL: sil [ossa] @do_eliminate_begin_borrow_consumed_by_guaranteed_phi : $@convention(thin) (@owned Builtin.NativeObject) -> () {
|
||||
// CHECK: begin_borrow
|
||||
// CHECK: } // end sil function 'do_eliminate_begin_borrow_consumed_by_guaranteed_phi'
|
||||
sil [ossa] @do_eliminate_begin_borrow_consumed_by_guaranteed_phi : $@convention(thin) (@owned Builtin.NativeObject) -> () {
|
||||
bb0(%0 : @owned $Builtin.NativeObject):
|
||||
%1 = begin_borrow %0 : $Builtin.NativeObject
|
||||
br bb1(%1 : $Builtin.NativeObject)
|
||||
|
||||
bb1(%2 : @guaranteed $Builtin.NativeObject):
|
||||
end_borrow %2 : $Builtin.NativeObject
|
||||
destroy_value %0 : $Builtin.NativeObject
|
||||
%9999 = tuple()
|
||||
return %9999 : $()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user