summaryrefslogtreecommitdiff
path: root/src/passes/SSAify.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-09-04 14:47:19 -0700
committerGitHub <noreply@github.com>2024-09-04 14:47:19 -0700
commit0812ad3564ab802db5c2df7f0fe9fdb22709a535 (patch)
tree6ad2dabc342652f2fcc48bb7bc92ffba211ed021 /src/passes/SSAify.cpp
parent9671b985aca3ce8ee18e7886229ba03c02e73fac (diff)
downloadbinaryen-0812ad3564ab802db5c2df7f0fe9fdb22709a535.tar.gz
binaryen-0812ad3564ab802db5c2df7f0fe9fdb22709a535.tar.bz2
binaryen-0812ad3564ab802db5c2df7f0fe9fdb22709a535.zip
[NFC] Convert LocalGraph influences accesses to function calls (#6899)
This replaces direct access of the data structure graph.*influences[foo] with a call graph.get*influences(foo). This will allow a later PR to make those calls optionally lazy.
Diffstat (limited to 'src/passes/SSAify.cpp')
-rw-r--r--src/passes/SSAify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/SSAify.cpp b/src/passes/SSAify.cpp
index 0a9c6891d..c220fdd06 100644
--- a/src/passes/SSAify.cpp
+++ b/src/passes/SSAify.cpp
@@ -120,7 +120,7 @@ struct SSAify : public Pass {
}
bool hasMerges(LocalSet* set, LocalGraph& graph) {
- for (auto* get : graph.setInfluences[set]) {
+ for (auto* get : graph.getSetInfluences(set)) {
if (graph.getSets(get).size() > 1) {
return true;
}