@@ -55,15 +55,13 @@ bb0(%0 : $Int, %1 : $Optional<Builtin.RawPointer>, %2: @guaranteed $@async @call
55
55
// CHECK: [[GROUP_GEP:%.*]] = getelementptr inbounds %swift.task_group_task_option, %swift.task_group_task_option* [[OPTIONS]], i32 0, i32 1
56
56
// CHECK: store i8* %0, i8** [[GROUP_GEP]], align 1
57
57
// CHECK: [[OPTIONS_PTR:%.*]] = ptrtoint %swift.task_group_task_option* [[OPTIONS]] to [[INT]]
58
- // CHECK: call swiftcc %swift.async_task_and_context @swift_task_create(i64 0, i64 [[OPTIONS_PTR]],
59
- sil hidden @launch_future_in_group : $@convention(thin) (Builtin.RawPointer, @guaranteed @async @callee_guaranteed () -> (Int, @error Error)) -> () {
60
- bb0(%0 : $Builtin.RawPointer, %1 : $@async @callee_guaranteed () -> (Int, @error Error)):
61
- %4 = integer_literal $Builtin.Int64, 0
62
- %5 = struct $Int (%4 : $Builtin.Int64)
58
+ // CHECK: call swiftcc %swift.async_task_and_context @swift_task_create(i64 %3, i64 [[OPTIONS_PTR]],
59
+ sil hidden @launch_future_in_group : $@convention(thin) (Builtin.RawPointer, @guaranteed @async @callee_guaranteed () -> (Int, @error Error), Int) -> () {
60
+ bb0(%0 : $Builtin.RawPointer, %1 : $@async @callee_guaranteed () -> (Int, @error Error), %3: $Int):
63
61
%6 = metatype $@thick Int.Type
64
62
%7 = init_existential_metatype %6 : $@thick Int.Type, $@thick Any.Type
65
63
strong_retain %1 : $@async @callee_guaranteed () -> (Int, @error Error)
66
- %9 = builtin "createAsyncTaskInGroup"<Int>(%5 : $Int, %0 : $Builtin.RawPointer, %7 : $@thick Any.Type, %1 : $@async @callee_guaranteed () -> (Int, @error Error)) : $(Builtin.NativeObject, Builtin.RawPointer)
64
+ %9 = builtin "createAsyncTaskInGroup"<Int>(%3 : $Int, %0 : $Builtin.RawPointer, %7 : $@thick Any.Type, %1 : $@async @callee_guaranteed () -> (Int, @error Error)) : $(Builtin.NativeObject, Builtin.RawPointer)
67
65
%10 = tuple_extract %9 : $(Builtin.NativeObject, Builtin.RawPointer), 0
68
66
strong_release %10 : $Builtin.NativeObject
69
67
%12 = tuple ()
0 commit comments