diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-04-04 17:24:07 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-04 17:24:07 -0700 |
commit | b243bf42bf89bee18ece60fb0607cf1fb70ce702 (patch) | |
tree | cbef2b087729ea063d9827155873686b71ec1dd1 /src/wasm-binary.h | |
parent | f84152a645d5585bb16f37164f838f87bfcf972e (diff) | |
parent | e6e701474b102b0f9b9d15f6b2c82f26cf956b6d (diff) | |
download | binaryen-b243bf42bf89bee18ece60fb0607cf1fb70ce702.tar.gz binaryen-b243bf42bf89bee18ece60fb0607cf1fb70ce702.tar.bz2 binaryen-b243bf42bf89bee18ece60fb0607cf1fb70ce702.zip |
Merge pull request #311 from WebAssembly/module-access
Access module elements using calls
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"; |