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/MultiMemoryLowering.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/MultiMemoryLowering.cpp')
-rw-r--r-- | src/passes/MultiMemoryLowering.cpp | 6 |
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) { |