diff options
author | Sam Clegg <sbc@chromium.org> | 2024-11-07 15:53:01 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-07 23:53:01 +0000 |
commit | a3d940ff8020ad8adb525b4ab018fcd86d08c54a (patch) | |
tree | 35b5f3fada3b53f36c949825a288c3dec8884cd1 /src/passes/SimplifyLocals.cpp | |
parent | 7a0e738e363d13880ec25018134e178d57c5ba6a (diff) | |
download | binaryen-a3d940ff8020ad8adb525b4ab018fcd86d08c54a.tar.gz binaryen-a3d940ff8020ad8adb525b4ab018fcd86d08c54a.tar.bz2 binaryen-a3d940ff8020ad8adb525b4ab018fcd86d08c54a.zip |
Rename indexType -> addressType. NFC (#7060)
See https://github.com/WebAssembly/memory64/pull/92
Diffstat (limited to 'src/passes/SimplifyLocals.cpp')
-rw-r--r-- | src/passes/SimplifyLocals.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/passes/SimplifyLocals.cpp b/src/passes/SimplifyLocals.cpp index eca503ad4..cf0b74950 100644 --- a/src/passes/SimplifyLocals.cpp +++ b/src/passes/SimplifyLocals.cpp @@ -1088,15 +1088,15 @@ struct SimplifyLocals } auto bestType = func->getLocalType(best); - auto indexType = func->getLocalType(index); - if (!Type::isSubType(indexType, bestType)) { + auto addressType = func->getLocalType(index); + if (!Type::isSubType(addressType, bestType)) { // This is less refined than the current best; ignore. continue; } // This is better if it has a more refined type, or if it has more // uses. - if (indexType != bestType || + if (addressType != bestType || getNumGetsIgnoringCurr(index) > getNumGetsIgnoringCurr(best)) { best = index; } |