Skip to content

Commit

Permalink
do not validate in parser
Browse files Browse the repository at this point in the history
  • Loading branch information
tlively committed Mar 6, 2024
1 parent 0a7cfe9 commit 759493c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/parser/wat-parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ void propagateDebugLocations(Module& wasm) {
return std::make_unique<Propagator>();
}
};
PassRunner runner(&wasm);
// The parser should not be responsible for validation.
PassOptions opts;
opts.validate = false;
opts.validateGlobally = false;
PassRunner runner(&wasm, opts);
runner.add(std::make_unique<Propagator>());
runner.run();
}
Expand Down

0 comments on commit 759493c

Please sign in to comment.