mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-22 19:50:55 +00:00
TargetInstrInfo::getStackSlotRange - fix "variable used but never read" analyzer warning. NFCI.
We don't need to divide the BitSize local variable at all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372582 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
581b77b3e9
commit
fed25f49be
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user