TargetInstrInfo::getStackSlotRange - fix "variable used but never read" analyzer warning. NFCI.

We don't need to divide the BitSize local variable at all.

llvm-svn: 372582
This commit is contained in:
Simon Pilgrim 2019-09-23 11:36:24 +00:00
parent 146a81711a
commit 41d32f6f95

View File

@ -394,7 +394,7 @@ bool TargetInstrInfo::getStackSlotRange(const TargetRegisterClass *RC,
if (BitOffset < 0 || BitOffset % 8)
return false;
Size = BitSize /= 8;
Size = BitSize / 8;
Offset = (unsigned)BitOffset / 8;
assert(TRI->getSpillSize(*RC) >= (Offset + Size) && "bad subregister range");