File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/lib/Transforms/Utils Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -659,11 +659,11 @@ bool SimplifyIndvar::replaceFloatIVWithIntegerIV(Instruction *UseInst) {
659
659
Instruction *IVOperand = cast<Instruction>(UseInst->getOperand (0 ));
660
660
// Get the symbolic expression for this instruction.
661
661
const SCEV *IV = SE->getSCEV (IVOperand);
662
- unsigned MaskBits;
662
+ int MaskBits;
663
663
if (UseInst->getOpcode () == CastInst::SIToFP)
664
- MaskBits = SE->getSignedRange (IV).getMinSignedBits ();
664
+ MaskBits = ( int ) SE->getSignedRange (IV).getMinSignedBits ();
665
665
else
666
- MaskBits = SE->getUnsignedRange (IV).getActiveBits ();
666
+ MaskBits = ( int ) SE->getUnsignedRange (IV).getActiveBits ();
667
667
int DestNumSigBits = UseInst->getType ()->getFPMantissaWidth ();
668
668
if (MaskBits <= DestNumSigBits) {
669
669
for (User *U : UseInst->users ()) {
You can’t perform that action at this time.
0 commit comments