diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-11-09 11:56:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-09 11:56:06 -0800 |
commit | e6eb478ec4eae111063780bd67c48abbf9c68947 (patch) | |
tree | 7a5e043822b78e6c69459cb68b600da15cedf262 | |
parent | 1e2528ec1d2c7bc6130760aed900741ebe565b60 (diff) | |
download | binaryen-e6eb478ec4eae111063780bd67c48abbf9c68947.tar.gz binaryen-e6eb478ec4eae111063780bd67c48abbf9c68947.tar.bz2 binaryen-e6eb478ec4eae111063780bd67c48abbf9c68947.zip |
fix wasm-reduce bug, the second validator param is the features, not the flags (#1277)
-rw-r--r-- | src/tools/wasm-reduce.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wasm-reduce.cpp b/src/tools/wasm-reduce.cpp index 53c197185..da6f4fa6e 100644 --- a/src/tools/wasm-reduce.cpp +++ b/src/tools/wasm-reduce.cpp @@ -417,7 +417,7 @@ struct Reducer : public WalkerPass<PostWalker<Reducer, UnifiedExpressionVisitor< } for (auto& func : functions) { curr->removeFunction(func.name); - if (WasmValidator().validate(*curr, WasmValidator::Globally | WasmValidator::Quiet) && + if (WasmValidator().validate(*curr, Feature::MVP, WasmValidator::Globally | WasmValidator::Quiet) && writeAndTestReduction()) { std::cerr << "| removed function " << func.name << '\n'; noteReduction(); |