File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 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
76sil_stage canonical
87
@@ -12,7 +11,7 @@ sil @test_simple : $@async () -> () {
1211bb0:
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}
You can’t perform that action at this time.
0 commit comments