Skip to content

Commit 0917a38

Browse files
[PowerPC] Fix a warning
This patch fixes: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:15676:17: error: unused variable 'CC' [-Werror,-Wunused-variable]
1 parent 6c48fbc commit 0917a38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15673,7 +15673,8 @@ static SDValue ConvertSETCCToXori(SDNode *N, SelectionDAG &DAG) {
1567315673
SDValue RHS = N->getOperand(1);
1567415674
SDLoc DL(N);
1567515675

15676-
ISD::CondCode CC = cast<CondCodeSDNode>(N->getOperand(2))->get();
15676+
[[maybe_unused]] ISD::CondCode CC =
15677+
cast<CondCodeSDNode>(N->getOperand(2))->get();
1567715678
assert((CC == ISD::SETEQ) && "CC must be ISD::SETEQ.");
1567815679
// Rewrite it as XORI (and X, 1), 1.
1567915680
auto MakeXor1 = [&](SDValue V) {

0 commit comments

Comments
 (0)