Skip to content

Commit e705b2b

Browse files
committed
Fix warnings about unused varibles on builds without asserts.
1 parent 02ba405 commit e705b2b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6256,13 +6256,11 @@ LegalizerHelper::LegalizeResult LegalizerHelper::lowerFPTOSI(MachineInstr &MI) {
62566256
LegalizerHelper::LegalizeResult
62576257
LegalizerHelper::lowerFPTRUNC_F64_TO_F16(MachineInstr &MI) {
62586258
const LLT S1 = LLT::scalar(1);
6259-
const LLT S16 = LLT::scalar(16);
62606259
const LLT S32 = LLT::scalar(32);
6261-
const LLT S64 = LLT::scalar(64);
62626260

62636261
auto [Dst, Src] = MI.getFirst2Regs();
6264-
assert(MRI.getType(Dst).getScalarType() == S16 &&
6265-
MRI.getType(Src).getScalarType() == S64);
6262+
assert(MRI.getType(Dst).getScalarType() == LLT::scalar(16) &&
6263+
MRI.getType(Src).getScalarType() == LLT::scalar(64));
62666264

62676265
if (MRI.getType(Src).isVector()) // TODO: Handle vectors directly.
62686266
return UnableToLegalize;

0 commit comments

Comments
 (0)