[llvm] [PowerPC] Fix unused variable after 0c9c62adf165eb (PR #169549)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 25 11:00:49 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-powerpc
Author: Aiden Grossman (boomanaiden154)
<details>
<summary>Changes</summary>
This variable is only used in an assertion, so inline it per the LLVM coding standards.
---
Full diff: https://github.com/llvm/llvm-project/pull/169549.diff
1 Files Affected:
- (modified) llvm/lib/Target/PowerPC/PPCISelLowering.cpp (+2-2)
``````````diff
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 82b56820e9650..9b9b3f0109925 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -15673,8 +15673,8 @@ static SDValue ConvertSETCCToXori(SDNode *N, SelectionDAG &DAG) {
SDValue RHS = N->getOperand(1);
SDLoc DL(N);
- ISD::CondCode CC = cast<CondCodeSDNode>(N->getOperand(2))->get();
- assert((CC == ISD::SETEQ) && "CC must be ISD::SETEQ.");
+ assert((cast<CondCodeSDNode>(N->getOperand(2))->get() == ISD::SETEQ) &&
+ "CC must be ISD::SETEQ.");
// Rewrite it as XORI (and X, 1), 1.
auto MakeXor1 = [&](SDValue V) {
EVT VT = V.getValueType();
``````````
</details>
https://github.com/llvm/llvm-project/pull/169549
More information about the llvm-commits
mailing list