Skip to content

Commit 759493c

Browse files
committed
do not validate in parser
1 parent 0a7cfe9 commit 759493c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/parser/wat-parser.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ void propagateDebugLocations(Module& wasm) {
138138
return std::make_unique<Propagator>();
139139
}
140140
};
141-
PassRunner runner(&wasm);
141+
// The parser should not be responsible for validation.
142+
PassOptions opts;
143+
opts.validate = false;
144+
opts.validateGlobally = false;
145+
PassRunner runner(&wasm, opts);
142146
runner.add(std::make_unique<Propagator>());
143147
runner.run();
144148
}

0 commit comments

Comments
 (0)