diff options
Diffstat (limited to 'src/wasm2js.h')
-rw-r--r-- | src/wasm2js.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wasm2js.h b/src/wasm2js.h index c5fa54028..b1548c0ca 100644 --- a/src/wasm2js.h +++ b/src/wasm2js.h @@ -1115,6 +1115,9 @@ Ref Wasm2JSBuilder::processFunctionBody(Module* m, } Ref visitCall(Call* curr) { + if (curr->isReturn) { + Fatal() << "tail calls not yet supported in wasm2js"; + } Ref theCall = ValueBuilder::makeCall(fromName(curr->target, NameScope::Top)); // For wasm => wasm calls, we don't need coercions. TODO: even imports @@ -1136,6 +1139,9 @@ Ref Wasm2JSBuilder::processFunctionBody(Module* m, } Ref visitCallIndirect(CallIndirect* curr) { + if (curr->isReturn) { + Fatal() << "tail calls not yet supported in wasm2js"; + } // If the target has effects that interact with the operands, we must // reorder it to the start. bool mustReorder = false; |