Skip to content

Commit 2ca9638

Browse files
authored
Fuzzer: Mark Roundtrip pass as adding effects (WebAssembly#6366)
1 parent efbf70c commit 2ca9638

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/passes/RoundTrip.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
namespace wasm {
2929

3030
struct RoundTrip : public Pass {
31+
// Reloading the wasm may alter function names etc., which means our global
32+
// function effect tracking can get confused, and effects may seem to appear.
33+
// To avoid that, mark this pass as adding effects, which will clear all
34+
// cached effects and such.
35+
bool addsEffects() override { return true; }
36+
3137
void run(Module* module) override {
3238
BufferWithRandomAccess buffer;
3339
// Save features, which would not otherwise make it through a round trip if

0 commit comments

Comments
 (0)