[llvm] 048e967 - [WebAssembly] Fix unused variable in #200429 (#202464)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 8 18:04:16 PDT 2026
Author: Alex Crichton
Date: 2026-06-08T18:04:12-07:00
New Revision: 048e9675f3415c4c758dadbea982037ae1ba3376
URL: https://github.com/llvm/llvm-project/commit/048e9675f3415c4c758dadbea982037ae1ba3376
DIFF: https://github.com/llvm/llvm-project/commit/048e9675f3415c4c758dadbea982037ae1ba3376.diff
LOG: [WebAssembly] Fix unused variable in #200429 (#202464)
Fixes a mistake from #200429.
Added:
Modified:
llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
index 69f66858c20d1..2b34e2cf5ca6b 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
@@ -351,9 +351,8 @@ static bool isSafeToMove(const MachineOperand *Def, const MachineOperand *Use,
const WebAssemblyFunctionInfo &MFI,
const MachineRegisterInfo &MRI, bool Optimize) {
const MachineInstr *DefI = Def->getParent();
- const MachineInstr *UseI = Use->getParent();
assert(DefI->getParent() == Insert->getParent());
- assert(UseI->getParent() == Insert->getParent());
+ assert(Use->getParent()->getParent() == Insert->getParent());
// For now avoid stackifying any multi-def instructions. While it's
// theoretically possible to do so for the first def in some cases this has
More information about the llvm-commits
mailing list