Index: src/IceTargetLoweringMIPS32.cpp |
diff --git a/src/IceTargetLoweringMIPS32.cpp b/src/IceTargetLoweringMIPS32.cpp |
index ff93c4b78ae6bfcf13cc13cf33ccb80946b7571e..40d510d0c5cf266da2e9a1a5bfa3714d66895f26 100644 |
--- a/src/IceTargetLoweringMIPS32.cpp |
+++ b/src/IceTargetLoweringMIPS32.cpp |
@@ -1245,7 +1245,7 @@ Operand *TargetMIPS32::legalize(Operand *From, LegalMask Allowed, |
Context.insert<InstFakeDef>(Reg); |
return Reg; |
} else if (auto *C32 = llvm::dyn_cast<ConstantInteger32>(From)) { |
- uint32_t Value = static_cast<uint32_t>(C32->getValue()); |
+ const uint32_t Value = C32->getValue(); |
// Check if the immediate will fit in a Flexible second operand, |
// if a Flexible second operand is allowed. We need to know the exact |
// value, so that rules out relocatable constants. |