mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-11 15:08:16 +00:00
Out of bound reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34461 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
957840b3e1
commit
788fb1c103
@ -1451,10 +1451,10 @@ bool LiveIntervals::differingRegisterClasses(unsigned RegA,
|
|||||||
/// reg between indexes Start and End.
|
/// reg between indexes Start and End.
|
||||||
bool
|
bool
|
||||||
LiveIntervals::hasRegisterUse(unsigned Reg, unsigned Start, unsigned End) {
|
LiveIntervals::hasRegisterUse(unsigned Reg, unsigned Start, unsigned End) {
|
||||||
for (unsigned Index = Start+InstrSlots::NUM; Index != End;
|
for (unsigned Index = Start+InstrSlots::NUM; Index < End;
|
||||||
Index += InstrSlots::NUM) {
|
Index += InstrSlots::NUM) {
|
||||||
// Skip deleted instructions
|
// Skip deleted instructions
|
||||||
while (Index != End && !getInstructionFromIndex(Index))
|
while (Index < End && !getInstructionFromIndex(Index))
|
||||||
Index += InstrSlots::NUM;
|
Index += InstrSlots::NUM;
|
||||||
if (Index >= End) break;
|
if (Index >= End) break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user