Skip to content

Commit 98f0217

Browse files
committed
Pass coro.id to coro.begin
1 parent baa42ad commit 98f0217

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/test/Other/time-passes.ll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ end:
8383

8484
}
8585

86-
define void @baz_coro() {
87-
%unused = call ptr @llvm.coro.begin(token none, ptr null)
86+
define void @baz_coro() presplitcoroutine {
87+
%id = call token @llvm.coro.id(i32 16, ptr null, ptr null, ptr null)
88+
%unused = call ptr @llvm.coro.begin(token %id, ptr null)
8889
ret void
8990
}
9091

0 commit comments

Comments
 (0)