Skip to content

Commit 972ecc3

Browse files
[LoongArch] Fix a warning
This patch fixes: llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp:5354:7: error: unused variable 'VT' [-Werror,-Wunused-variable]
1 parent 106c897 commit 972ecc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5351,9 +5351,9 @@ static SDValue performMOVFR2GR_SCombine(SDNode *N, SelectionDAG &DAG,
53515351
// conversion is unnecessary and can be replaced with the MOVGR2FR_W_LA64
53525352
// operand.
53535353
SDValue Op0 = N->getOperand(0);
5354-
MVT VT = N->getSimpleValueType(0);
53555354
if (Op0->getOpcode() == LoongArchISD::MOVGR2FR_W_LA64) {
5356-
assert(Op0.getOperand(0).getValueType() == VT && "Unexpected value type!");
5355+
assert(Op0.getOperand(0).getValueType() == N->getSimpleValueType(0) &&
5356+
"Unexpected value type!");
53575357
return Op0.getOperand(0);
53585358
}
53595359
return SDValue();

0 commit comments

Comments
 (0)