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-validator.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-validator.h')
-rw-r--r-- | src/wasm-validator.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wasm-validator.h b/src/wasm-validator.h index 2918c918d..77f475990 100644 --- a/src/wasm-validator.h +++ b/src/wasm-validator.h @@ -108,9 +108,8 @@ public: } // start if (curr->start.is()) { - auto iter = curr->functionsMap.find(curr->start); - if (shouldBeTrue(iter != curr->functionsMap.end())) { - auto func = iter->second; + auto func = curr->checkFunction(curr->start); + if (shouldBeTrue(func)) { shouldBeTrue(func->params.size() == 0); // must be nullary } } |