summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/asm2wasm.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/asm2wasm.cpp b/src/asm2wasm.cpp
index ac8be340d..e3fb23c4f 100644
--- a/src/asm2wasm.cpp
+++ b/src/asm2wasm.cpp
@@ -1039,6 +1039,11 @@ Function* Asm2WasmModule::processFunction(Ref ast) {
ret->list.push_back(process(ast[2]));
return ret;
} else if (what == SWITCH) {
+ // XXX switch is still in flux in the spec repo, just emit a placeholder
+ auto ret = allocator.alloc<Block>();
+ ret->var = IString("SWITCH_PLACEHOLDER");
+ return ret;
+#if 0
IString name = getNextId("switch");
breakStack.push_back(name);
auto ret = allocator.alloc<Switch>();
@@ -1062,6 +1067,7 @@ Function* Asm2WasmModule::processFunction(Ref ast) {
}
breakStack.pop_back();
return ret;
+#endif
}
abort_on("confusing expression", ast);
};