Chromium Code Reviews| Index: src/IceTargetLoweringMIPS32.cpp |
| diff --git a/src/IceTargetLoweringMIPS32.cpp b/src/IceTargetLoweringMIPS32.cpp |
| index ff93c4b78ae6bfcf13cc13cf33ccb80946b7571e..6b1a1d368b92eb3719bdd77dba6f09a2c3352972 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()); |
| + auto Value = static_cast<uint32_t>(C32->getValue()); |
|
John
2016/02/07 16:18:33
uint32_t Value = ...;
While at this, const?
Jim Stichnoth
2016/02/07 17:44:41
Done.
|
| // 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. |