Skip to content

Commit e48430e

Browse files
Fix existing test failure due to inlining
1 parent 3bbd280 commit e48430e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

llvm/test/Transforms/Coroutines/coro-transform-must-elide.ll

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ define ptr @caller() #0 {
5959
entry:
6060
%task = call ptr @callee(i8 0) #1
6161
ret ptr %task
62-
63-
; CHECK: %[[FRAME:.+]] = alloca [32 x i8], align 8
64-
; CHECK-NEXT: %[[TASK:.+]] = call ptr @callee.noalloc(i8 0, ptr %[[FRAME]])
62+
; CHECK: %[[TASK:.+]] = alloca %struct.Task, align 8
63+
; CHECK-NEXT: %[[FRAME:.+]] = alloca [32 x i8], align 8
64+
; CHECK-NEXT: call void @llvm.lifetime.start.p0(i64 8, ptr %[[TASK]])
65+
; CHECK-NEXT: call token @llvm.coro.id(i32 0, ptr null, ptr @callee, ptr @callee.resumers)
66+
; CHECK: call void @llvm.lifetime.end.p0(i64 8, ptr %[[TASK]])
6567
; CHECK-NEXT: ret ptr %[[TASK]]
6668
}
6769

0 commit comments

Comments
 (0)