mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
[PowerPC] Fix a warning
This patch fixes: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:15676:17: error: unused variable 'CC' [-Werror,-Wunused-variable]
This commit is contained in:
@@ -15673,7 +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();
|
||||
[[maybe_unused]] ISD::CondCode CC =
|
||||
cast<CondCodeSDNode>(N->getOperand(2))->get();
|
||||
assert((CC == ISD::SETEQ) && "CC must be ISD::SETEQ.");
|
||||
// Rewrite it as XORI (and X, 1), 1.
|
||||
auto MakeXor1 = [&](SDValue V) {
|
||||
|
||||
Reference in New Issue
Block a user