We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efbf70c commit 2ca9638Copy full SHA for 2ca9638
src/passes/RoundTrip.cpp
@@ -28,6 +28,12 @@
28
namespace wasm {
29
30
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
+
37
void run(Module* module) override {
38
BufferWithRandomAccess buffer;
39
// Save features, which would not otherwise make it through a round trip if
0 commit comments