Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/passes/RoundTrip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
namespace wasm {

struct RoundTrip : public Pass {
// Reloading the wasm may alter function names etc., which means our global
// function effect tracking can get confused, and effects may seem to appear.
// To avoid that, mark this pass as adding effects, which will clear all
// cached effects and such.
bool addsEffects() override { return true; }

void run(Module* module) override {
BufferWithRandomAccess buffer;
// Save features, which would not otherwise make it through a round trip if
Expand Down