From a3d940ff8020ad8adb525b4ab018fcd86d08c54a Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 7 Nov 2024 15:53:01 -0800 Subject: Rename indexType -> addressType. NFC (#7060) See https://github.com/WebAssembly/memory64/pull/92 --- src/passes/SimplifyLocals.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/passes/SimplifyLocals.cpp') 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; } -- cgit v1.2.3