summaryrefslogtreecommitdiff
path: root/src/passes/MultiMemoryLowering.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2024-11-07 15:53:01 -0800
committerGitHub <noreply@github.com>2024-11-07 23:53:01 +0000
commita3d940ff8020ad8adb525b4ab018fcd86d08c54a (patch)
tree35b5f3fada3b53f36c949825a288c3dec8884cd1 /src/passes/MultiMemoryLowering.cpp
parent7a0e738e363d13880ec25018134e178d57c5ba6a (diff)
downloadbinaryen-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/MultiMemoryLowering.cpp')
-rw-r--r--src/passes/MultiMemoryLowering.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/passes/MultiMemoryLowering.cpp b/src/passes/MultiMemoryLowering.cpp
index b214959f7..c22477b79 100644
--- a/src/passes/MultiMemoryLowering.cpp
+++ b/src/passes/MultiMemoryLowering.cpp
@@ -430,7 +430,7 @@ struct MultiMemoryLowering : public Pass {
Memory& getFirstMemory() { return *wasm->memories[0]; }
void prepCombinedMemory() {
- pointerType = getFirstMemory().indexType;
+ pointerType = getFirstMemory().addressType;
memoryInfo = pointerType == Type::i32 ? Builder::MemoryInfo::Memory32
: Builder::MemoryInfo::Memory64;
isShared = getFirstMemory().shared;
@@ -439,7 +439,7 @@ struct MultiMemoryLowering : public Pass {
// We are assuming that each memory is configured the same as the first
// and assert if any of the memories does not match this configuration
assert(memory->shared == isShared);
- assert(memory->indexType == pointerType);
+ assert(memory->addressType == pointerType);
// TODO: handle memory import for memories other than the first
if (memory->name != getFirstMemory().name && memory->imported()) {
@@ -690,7 +690,7 @@ struct MultiMemoryLowering : public Pass {
void addCombinedMemory() {
auto memory = Builder::makeMemory(combinedMemory);
memory->shared = isShared;
- memory->indexType = pointerType;
+ memory->addressType = pointerType;
memory->initial = totalInitialPages;
memory->max = totalMaxPages;
if (isImported) {