Skip to content

Commit e6a007f

Browse files
committed
[RISCV] Use getConstantOperandVal. NFC
1 parent d76e96b commit e6a007f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5009,8 +5009,7 @@ SDValue RISCVTargetLowering::LowerIS_FPCLASS(SDValue Op,
50095009
SDLoc DL(Op);
50105010
MVT VT = Op.getSimpleValueType();
50115011
MVT XLenVT = Subtarget.getXLenVT();
5012-
auto CNode = cast<ConstantSDNode>(Op.getOperand(1));
5013-
unsigned Check = CNode->getZExtValue();
5012+
unsigned Check = Op.getConstantOperandVal(1);
50145013
unsigned TDCMask = 0;
50155014
if (Check & fcSNan)
50165015
TDCMask |= RISCV::FPMASK_Signaling_NaN;

0 commit comments

Comments
 (0)