summaryrefslogtreecommitdiff
path: root/src/passes/Precompute.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-08-31 16:49:34 -0700
committerGitHub <noreply@github.com>2021-08-31 16:49:34 -0700
commit82cdabf20e496508cd241ef31a5f630c2de844ad (patch)
treed125e86b1bd50e85c20b540be1074ed655591b8f /src/passes/Precompute.cpp
parent7d966528f603e65dacbf25f585a5accc46470bbd (diff)
downloadbinaryen-82cdabf20e496508cd241ef31a5f630c2de844ad.tar.gz
binaryen-82cdabf20e496508cd241ef31a5f630c2de844ad.tar.bz2
binaryen-82cdabf20e496508cd241ef31a5f630c2de844ad.zip
Use the new module version of EffectAnalyzer (#4116)
This finishes the refactoring started in #4115 by doing the same change to pass a Module into EffectAnalyzer instead of features. To do so this refactors the fallthrough API and a few other small things. After those changes, this PR removes the old feature constructor of EffectAnalyzer entirely. This requires a small breaking change in the C API, changing BinaryenExpressionGetSideEffects's feature param to a module. That makes this change not NFC, but otherwise it is.
Diffstat (limited to 'src/passes/Precompute.cpp')
-rw-r--r--src/passes/Precompute.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/Precompute.cpp b/src/passes/Precompute.cpp
index 82504bff5..89941a1ae 100644
--- a/src/passes/Precompute.cpp
+++ b/src/passes/Precompute.cpp
@@ -316,7 +316,7 @@ private:
// propagate that 42 along to the users, regardless of whatever the call
// did globally.)
auto values = precomputeValue(Properties::getFallthrough(
- set->value, getPassOptions(), getModule()->features));
+ set->value, getPassOptions(), *getModule()));
// Fix up the value. The computation we just did was to look at the
// fallthrough, then precompute that; that looks through expressions
// that pass through the value. Normally that does not matter here,