Skip to content

Commit 8a00efd

Browse files
[SystemZ] Fix warnings
This patch fixes: llvm/lib/Target/SystemZ/SystemZISelLowering.cpp:6916:7: error: unused variable 'RegVT' [-Werror,-Wunused-variable] llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp:1265:30: error: unused variable 'RC' [-Werror,-Wunused-variable]
1 parent e19fcb7 commit 8a00efd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

llvm/lib/Target/SystemZ/SystemZISelLowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6915,6 +6915,7 @@ SDValue SystemZTargetLowering::lowerLoadF16(SDValue Op,
69156915
SelectionDAG &DAG) const {
69166916
EVT RegVT = Op.getValueType();
69176917
assert(RegVT == MVT::f16 && "Expected to lower an f16 load.");
6918+
(void)RegVT;
69186919

69196920
// Load as integer.
69206921
SDLoc DL(Op);

llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,6 +1267,7 @@ MachineInstr *SystemZInstrInfo::foldMemoryOperandImpl(
12671267
assert((Size * 8 == TRI->getRegSizeInBits(*RC) ||
12681268
(RC == &SystemZ::FP16BitRegClass && Size == 4 && !STI.hasVector())) &&
12691269
"Invalid size combination");
1270+
(void)RC;
12701271

12711272
if ((Opcode == SystemZ::AHI || Opcode == SystemZ::AGHI) && OpNum == 0 &&
12721273
isInt<8>(MI.getOperand(2).getImm())) {

0 commit comments

Comments
 (0)