diff options
author | Alon Zakai (kripken) <alonzakai@gmail.com> | 2017-05-28 13:14:33 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2017-06-01 13:18:19 -0700 |
commit | f47d054dcc34dd709f36716c9fab07087db829e1 (patch) | |
tree | 5dd0a6588d383d7b0eee2f61574f9741e030cd0c /src | |
parent | ed21d9ce96f51851a4fa357804f58972f4b66284 (diff) | |
download | binaryen-f47d054dcc34dd709f36716c9fab07087db829e1.tar.gz binaryen-f47d054dcc34dd709f36716c9fab07087db829e1.tar.bz2 binaryen-f47d054dcc34dd709f36716c9fab07087db829e1.zip |
remove unneeded code in interpreter
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm-interpreter.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index a8eda4e8f..0b01fb1d3 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -903,7 +903,6 @@ public: Flow flow = RuntimeExpressionRunner(*this, scope).visit(function->body); assert(!flow.breaking() || flow.breakTo == RETURN_FLOW); // cannot still be breaking, it means we missed our stop Literal ret = flow.value; - if (function->result == none) ret = Literal(); if (function->result != ret.type) { std::cerr << "calling " << function->name << " resulted in " << ret << " but the function type is " << function->result << '\n'; WASM_UNREACHABLE(); |