diff options
author | Alon Zakai <azakai@google.com> | 2020-11-17 15:23:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 15:23:05 -0800 |
commit | 165fef7f4751baa561a125f5d7f5e5d5b7698ed1 (patch) | |
tree | 8ce5359a9a1712235d18384098bf0e42fecedd44 /src/passes/ReReloop.cpp | |
parent | a3d2a4d7854b8c14c7c7d222307b2af0c48b1275 (diff) | |
download | binaryen-165fef7f4751baa561a125f5d7f5e5d5b7698ed1.tar.gz binaryen-165fef7f4751baa561a125f5d7f5e5d5b7698ed1.tar.bz2 binaryen-165fef7f4751baa561a125f5d7f5e5d5b7698ed1.zip |
[ReReloop] Pass module when calling ReFinalize (#3382)
I happened to notice that this was the one place that calls ReFinalize
without the module. That could error if the module is actually needed,
which the pass might use, based on the code (but rare enough that it's
never been an issue I guess).
Diffstat (limited to 'src/passes/ReReloop.cpp')
-rw-r--r-- | src/passes/ReReloop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/ReReloop.cpp b/src/passes/ReReloop.cpp index b35efa8d4..30cd55f44 100644 --- a/src/passes/ReReloop.cpp +++ b/src/passes/ReReloop.cpp @@ -362,7 +362,7 @@ struct ReReloop final : public Pass { } } // TODO: should this be in the relooper itself? - ReFinalize().walk(function->body); + ReFinalize().walkFunctionInModule(function, module); } }; |