diff options
author | Alon Zakai <azakai@google.com> | 2023-10-17 08:58:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-17 08:58:48 -0700 |
commit | ede148eaa505d3681abd67b0b4d7de1b82ec05ff (patch) | |
tree | 03efacbe949fe82ae0cd91e5b37bc866de950ed1 /src/passes/GlobalStructInference.cpp | |
parent | 2d1e1501f5da1436f61c8ff5440aca33e25a29e9 (diff) | |
download | binaryen-ede148eaa505d3681abd67b0b4d7de1b82ec05ff.tar.gz binaryen-ede148eaa505d3681abd67b0b4d7de1b82ec05ff.tar.bz2 binaryen-ede148eaa505d3681abd67b0b4d7de1b82ec05ff.zip |
[NFC] Rename getSuperType to getDeclaredSuperType (#6015)
A later PR will add getSuperType which will mean "get the general super type -
either declared, or not".
Diffstat (limited to 'src/passes/GlobalStructInference.cpp')
-rw-r--r-- | src/passes/GlobalStructInference.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/GlobalStructInference.cpp b/src/passes/GlobalStructInference.cpp index ceee8b02d..9fc906971 100644 --- a/src/passes/GlobalStructInference.cpp +++ b/src/passes/GlobalStructInference.cpp @@ -170,7 +170,7 @@ struct GlobalStructInference : public Pass { // empty, below. typeGlobals.erase(type); - auto super = type.getSuperType(); + auto super = type.getDeclaredSuperType(); if (!super) { break; } @@ -184,7 +184,7 @@ struct GlobalStructInference : public Pass { for (auto& [type, globals] : typeGlobalsCopy) { auto curr = type; while (1) { - auto super = curr.getSuperType(); + auto super = curr.getDeclaredSuperType(); if (!super) { break; } |