[llvm] [InstCombine] Fix pointer replacement in `foldSelectValueEquivalence` (PR #161701)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 4 11:52:31 PDT 2025
================
@@ -1401,8 +1403,8 @@ Instruction *InstCombinerImpl::foldSelectValueEquivalence(SelectInst &Sel,
}
Value *CmpLHS = Cmp.getOperand(0), *CmpRHS = Cmp.getOperand(1);
- auto ReplaceOldOpWithNewOp = [&](Value *OldOp,
- Value *NewOp) -> Instruction * {
+ auto ReplaceOldOpWithNewOp = [&](Value *OldOp, Value *NewOp,
+ uint32_t Direction) -> Instruction * {
----------------
nikic wrote:
Unused Direction argument?
https://github.com/llvm/llvm-project/pull/161701
More information about the llvm-commits
mailing list