summaryrefslogtreecommitdiff
path: root/src/ir/table-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/table-utils.h')
-rw-r--r--src/ir/table-utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/table-utils.h b/src/ir/table-utils.h
index d2f90626a..59d7cc3df 100644
--- a/src/ir/table-utils.h
+++ b/src/ir/table-utils.h
@@ -88,7 +88,7 @@ inline Index append(Table& table, Name name, Module& wasm) {
auto* func = wasm.getFunctionOrNull(name);
assert(func != nullptr && "Cannot append non-existing function to a table.");
segment->data.push_back(Builder(wasm).makeRefFunc(name, func->sig));
- table.initial = table.initial + 1;
+ table.initial++;
return tableIndex;
}