Skip to content

Commit e6eb478

Browse files
authored
fix wasm-reduce bug, the second validator param is the features, not the flags (#1277)
1 parent 1e2528e commit e6eb478

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tools/wasm-reduce.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ struct Reducer : public WalkerPass<PostWalker<Reducer, UnifiedExpressionVisitor<
417417
}
418418
for (auto& func : functions) {
419419
curr->removeFunction(func.name);
420-
if (WasmValidator().validate(*curr, WasmValidator::Globally | WasmValidator::Quiet) &&
420+
if (WasmValidator().validate(*curr, Feature::MVP, WasmValidator::Globally | WasmValidator::Quiet) &&
421421
writeAndTestReduction()) {
422422
std::cerr << "| removed function " << func.name << '\n';
423423
noteReduction();

0 commit comments

Comments
 (0)