summaryrefslogtreecommitdiff
path: root/src/asm_v_wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-04-04 17:24:07 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-04-04 17:24:07 -0700
commitb243bf42bf89bee18ece60fb0607cf1fb70ce702 (patch)
treecbef2b087729ea063d9827155873686b71ec1dd1 /src/asm_v_wasm.h
parentf84152a645d5585bb16f37164f838f87bfcf972e (diff)
parente6e701474b102b0f9b9d15f6b2c82f26cf956b6d (diff)
downloadbinaryen-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/asm_v_wasm.h')
-rw-r--r--src/asm_v_wasm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/asm_v_wasm.h b/src/asm_v_wasm.h
index 394c7a321..29344e9bb 100644
--- a/src/asm_v_wasm.h
+++ b/src/asm_v_wasm.h
@@ -113,8 +113,8 @@ FunctionType sigToFunctionType(std::string sig) {
FunctionType* ensureFunctionType(std::string sig, Module* wasm, MixedArena& allocator) {
cashew::IString name(("FUNCSIG$" + sig).c_str(), false);
- if (wasm->functionTypesMap.find(name) != wasm->functionTypesMap.end()) {
- return wasm->functionTypesMap[name];
+ if (wasm->checkFunctionType(name)) {
+ return wasm->getFunctionType(name);
}
// add new type
auto type = allocator.alloc<FunctionType>();