mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 00:36:36 +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.
|
||||
bool
|
||||
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) {
|
||||
// Skip deleted instructions
|
||||
while (Index != End && !getInstructionFromIndex(Index))
|
||||
while (Index < End && !getInstructionFromIndex(Index))
|
||||
Index += InstrSlots::NUM;
|
||||
if (Index >= End) break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user