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 59d7cc3df..99a5bbf5b 100644
--- a/src/ir/table-utils.h
+++ b/src/ir/table-utils.h
@@ -87,7 +87,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));
+ segment->data.push_back(Builder(wasm).makeRefFunc(name, func->type));
table.initial++;
return tableIndex;
}