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/StackCheck.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/StackCheck.cpp')
-rw-r--r-- | src/passes/StackCheck.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/passes/StackCheck.cpp b/src/passes/StackCheck.cpp index ce5d346b9..31bf791fd 100644 --- a/src/passes/StackCheck.cpp +++ b/src/passes/StackCheck.cpp @@ -151,17 +151,17 @@ struct StackCheck : public Pass { Builder builder(*module); // Add the globals. - Type indexType = - module->memories.empty() ? Type::i32 : module->memories[0]->indexType; + Type addressType = + module->memories.empty() ? Type::i32 : module->memories[0]->addressType; auto stackBase = module->addGlobal(builder.makeGlobal(stackBaseName, stackPointer->type, - builder.makeConstPtr(0, indexType), + builder.makeConstPtr(0, addressType), Builder::Mutable)); auto stackLimit = module->addGlobal(builder.makeGlobal(stackLimitName, stackPointer->type, - builder.makeConstPtr(0, indexType), + builder.makeConstPtr(0, addressType), Builder::Mutable)); // Instrument all the code. |