summaryrefslogtreecommitdiff
path: root/src/s2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r--src/s2wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index 2de6cd60f..16b1125e8 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -993,7 +993,7 @@ class S2WasmBuilder {
addToBlock(curr);
} else if (match("tableswitch")) {
auto curr = allocator.alloc<Switch>();
- curr->value = getInput();
+ curr->condition = getInput();
skipComma();
curr->default_ = getBranchLabel(getInt());
while (skipComma()) {