summaryrefslogtreecommitdiff
path: root/src/wasm2asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm2asm.h')
-rw-r--r--src/wasm2asm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm2asm.h b/src/wasm2asm.h
index 310ba4224..0d8422ab1 100644
--- a/src/wasm2asm.h
+++ b/src/wasm2asm.h
@@ -287,7 +287,7 @@ void Wasm2AsmBuilder::addTables(Ref ast, Module *wasm) {
std::map<std::string, std::vector<IString>> tables; // asm.js tables, sig => contents of table
for (size_t i = 0; i < wasm->table.names.size(); i++) {
Name name = wasm->table.names[i];
- auto func = wasm->functionsMap[name];
+ auto func = wasm->getFunction(name);
std::string sig = getSig(func);
auto& table = tables[sig];
if (table.size() == 0) {