Skip to content

Commit bde2923

Browse files
committed
wrong type fix
1 parent c102f64 commit bde2923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/DemandedBits.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void DemandedBits::determineLiveOperandBits(
8181
return ShiftLeft ? Mask.shl(ShiftAmnt) : Mask.lshr(ShiftAmnt);
8282
};
8383
AB = APInt::getZero(BitWidth);
84-
uint8_t LoopRange = Max - Min;
84+
unsigned LoopRange = Max - Min;
8585
auto Mask = AOut;
8686
for (unsigned ShiftAmnt = 1; ShiftAmnt <= LoopRange; ShiftAmnt <<= 1) {
8787
APInt Shifted = ShiftF(Mask, ShiftAmnt);

0 commit comments

Comments
 (0)