@@ -22,7 +22,7 @@ class TrivialDestructor {
22
22
// Swift._allocateUninitializedArray <A> (Builtin.Word) -> (Swift.Array<A>, Builtin.RawPointer)
23
23
sil [_semantics "array.uninitialized"] @allocArray : $@convention(thin) <τ_0_0> (Builtin.Word) -> @owned (Array<τ_0_0>, Builtin.RawPointer)
24
24
25
- sil [_semantics "array.uninitialized"] @adoptStorageSpecialiedForInt : $@convention(method) (@guaranteed _ContiguousArrayStorage<Int>, Int , @thin Array<Int>.Type) -> (@owned Array<Int>, UnsafeMutablePointer<Int>)
25
+ sil [_semantics "array.uninitialized"] @adoptStorageSpecialiedForInt : $@convention(method) (@guaranteed _ContiguousArrayStorage<Int>, Builtin.Word , @thin Array<Int>.Type) -> (@owned Array<Int>, UnsafeMutablePointer<Int>)
26
26
27
27
// CHECK-LABEL: sil @deadarrayWithAdoptStorage : $@convention(thin) () -> () {
28
28
// CHECK-NOT: alloc_ref
@@ -31,12 +31,10 @@ sil [_semantics "array.uninitialized"] @adoptStorageSpecialiedForInt : $@convent
31
31
sil @deadarrayWithAdoptStorage : $@convention(thin) () -> () {
32
32
bb0:
33
33
%0 = integer_literal $Builtin.Word, 3
34
- %1 = builtin "zextOrBitCast_Word_Int64"(%0 : $Builtin.Word) : $Builtin.Int64
35
- %2 = struct $Int (%1 : $Builtin.Int64)
36
34
%6 = alloc_ref [tail_elems $Int * %0 : $Builtin.Word] $_ContiguousArrayStorage<Int>
37
35
%7 = metatype $@thin Array<Int>.Type
38
- %8 = function_ref @adoptStorageSpecialiedForInt : $@convention(method) (@guaranteed _ContiguousArrayStorage<Int>, Int , @thin Array<Int>.Type) -> (@owned Array<Int>, UnsafeMutablePointer<Int>)
39
- %9 = apply %8(%6, %2 , %7) : $@convention(method) (@guaranteed _ContiguousArrayStorage<Int>, Int , @thin Array<Int>.Type) -> (@owned Array<Int>, UnsafeMutablePointer<Int>)
36
+ %8 = function_ref @adoptStorageSpecialiedForInt : $@convention(method) (@guaranteed _ContiguousArrayStorage<Int>, Builtin.Word , @thin Array<Int>.Type) -> (@owned Array<Int>, UnsafeMutablePointer<Int>)
37
+ %9 = apply %8(%6, %0 , %7) : $@convention(method) (@guaranteed _ContiguousArrayStorage<Int>, Builtin.Word , @thin Array<Int>.Type) -> (@owned Array<Int>, UnsafeMutablePointer<Int>)
40
38
strong_release %6 : $_ContiguousArrayStorage<Int>
41
39
%10 = tuple_extract %9 : $(Array<Int>, UnsafeMutablePointer<Int>), 0
42
40
%11 = tuple_extract %9 : $(Array<Int>, UnsafeMutablePointer<Int>), 1
0 commit comments