Skip to content

Commit 5ebb22d

Browse files
[Mips] Remove an unnecessary cast (NFC) (#152837)
getZExtValue() already returns uint64_t.
1 parent 39941a2 commit 5ebb22d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/Mips/MipsISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4408,7 +4408,7 @@ void MipsTargetLowering::LowerAsmOperandForConstraint(SDValue Op,
44084408
case 'K': // unsigned 16 bit immediate
44094409
if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
44104410
EVT Type = Op.getValueType();
4411-
uint64_t Val = (uint64_t)C->getZExtValue();
4411+
uint64_t Val = C->getZExtValue();
44124412
if (isUInt<16>(Val)) {
44134413
Result = DAG.getTargetConstant(Val, DL, Type);
44144414
break;

0 commit comments

Comments
 (0)