Skip to content

Commit 3e29e52

Browse files
committed
[RISCV] Fix -Wunused-variable in RISCVISelLowering.cpp (NFC)
llvm-project/llvm/lib/Target/RISCV/RISCVISelLowering.cpp:13754:12: error: unused variable 'Opc' [-Werror,-Wunused-variable] unsigned Opc = N->getOpcode(); ^ 1 error generated.
1 parent f882eb4 commit 3e29e52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13751,7 +13751,7 @@ static SDValue combineVWADDWSelect(SDNode *N, SelectionDAG &DAG) {
1375113751
static SDValue performVWADDW_VLCombine(SDNode *N,
1375213752
TargetLowering::DAGCombinerInfo &DCI,
1375313753
const RISCVSubtarget &Subtarget) {
13754-
unsigned Opc = N->getOpcode();
13754+
[[maybe_unused]] unsigned Opc = N->getOpcode();
1375513755
assert(Opc == RISCVISD::VWADD_W_VL || Opc == RISCVISD::VWADDU_W_VL);
1375613756

1375713757
if (SDValue V = combineBinOp_VLToVWBinOp_VL(N, DCI, Subtarget))

0 commit comments

Comments
 (0)