aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp
diff options
context:
space:
mode:
authorAndy Wingo <wingo@igalia.com>2021-05-31 10:55:15 +0200
committerAndy Wingo <wingo@igalia.com>2021-05-31 10:55:15 +0200
commitbc1ad6e3c49dacea862ca6fa44297c64bb053ad8 (patch)
tree99e9964a1ba04be7b5de6949407cbb5b5d8e1ca8 /llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp
parent818338add77411f5e9713247ea66142f332ef350 (diff)
downloadllvm-bc1ad6e3c49dacea862ca6fa44297c64bb053ad8.zip
llvm-bc1ad6e3c49dacea862ca6fa44297c64bb053ad8.tar.gz
llvm-bc1ad6e3c49dacea862ca6fa44297c64bb053ad8.tar.bz2
Revert "[WebAssembly][CodeGen] IR support for WebAssembly local variables"
This reverts commit bf35f4af51cddd743435bb6b94a45592c967891a. There was an error in a shared-library build.
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp
index 4a0738d..7ed224d 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp
@@ -239,10 +239,8 @@ bool WebAssemblyExplicitLocals::runOnMachineFunction(MachineFunction &MF) {
Changed = true;
}
- // Start assigning local numbers after the last parameter and after any
- // already-assigned locals.
+ // Start assigning local numbers after the last parameter.
unsigned CurLocal = static_cast<unsigned>(MFI.getParams().size());
- CurLocal += static_cast<unsigned>(MFI.getLocals().size());
// Precompute the set of registers that are unused, so that we can insert
// drops to their defs.