Skip to content

Commit edaf81a

Browse files
[test][IRGen] Repair async/non_musttail_target.sil
`-disable-llvm-optzns -disable-swift-specific-llvm-optzns -disable-objc-interop` was wrong way to avoid llvm coroutine lowering.
1 parent f26d596 commit edaf81a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// Ensure that IRGen don't emit unreachable after coro.end.async for targets that don't support musttail call.
2-
// RUN: %target-swift-frontend -disable-legacy-type-info -parse-stdlib %s -disable-llvm-optzns -disable-swift-specific-llvm-optzns -disable-objc-interop -module-name main -emit-ir -o - | %FileCheck %s
2+
// RUN: %swift -target wasm32-unknown-none -parse-stdlib %s -module-name main -emit-irgen -o - | %FileCheck %s
33

4-
// REQUIRES: concurrency
5-
// REQUIRES: OS=wasi
4+
// REQUIRES: concurrency, CODEGENERATOR=WebAssembly
65

76
sil_stage canonical
87

@@ -12,7 +11,7 @@ sil @test_simple : $@async () -> () {
1211
bb0:
1312
%0 = tuple ()
1413
return %0 : $()
15-
// CHECK: call i1 (i8*, i1, ...) @llvm.coro.end.async
14+
// CHECK: call i1 (ptr, i1, ...) @llvm.coro.end.async
1615
// CHECK-NOT: unreachable
1716
// CHECK: ret void
1817
}

0 commit comments

Comments
 (0)