diff options
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r-- | src/asm2wasm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h index afd85feb6..f00004b1f 100644 --- a/src/asm2wasm.h +++ b/src/asm2wasm.h @@ -777,6 +777,7 @@ void Asm2WasmBuilder::processAsm(Ref ast) { // TODO: when not using aliasing function pointers, we could merge them by noticing that // index 0 in each table is the null func, and each other index should only have one // non-null func. However, that breaks down when function pointer casts are emulated. + wasm.table.exists = true; if (wasm.table.segments.size() == 0) { wasm.table.segments.emplace_back(wasm.allocator.alloc<Const>()->set(Literal(uint32_t(0)))); } |