diff options
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index edc904787..5695cffcc 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1709,8 +1709,7 @@ public: void visitCallImport(CallImport *curr) { if (debug) std::cerr << "zz node: CallImport" << std::endl; curr->target = wasm.imports[getU32LEB()]->name; - assert(wasm.importsMap.find(curr->target) != wasm.importsMap.end()); - auto type = wasm.importsMap[curr->target]->type; + auto type = wasm.getImport(curr->target)->type; assert(type); auto num = type->params.size(); if (debug) std::cerr << "zz node: CallImport " << curr->target << " with type " << type->name << " and " << num << " params\n"; |