mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-16 16:16:45 +00:00
Fix assertion to not dereference end!
llvm-svn: 14991
This commit is contained in:
parent
42b44d3d1c
commit
f5bdaf62f8
@ -399,8 +399,8 @@ void RA::assignRegOrStackSlotAtInterval(IntervalPtrs::value_type cur)
|
||||
std::vector<LiveInterval*>::iterator addedItEnd = added.end();
|
||||
for (IntervalPtrs::iterator i = unhandled_.begin(), e =unhandled_.end();
|
||||
i != e && addedIt != addedItEnd; ++i) {
|
||||
while ((*i)->start() > (*addedIt)->start() &&
|
||||
addedIt != addedItEnd) {
|
||||
while (addedIt != addedItEnd &&
|
||||
(*i)->start() > (*addedIt)->start()) {
|
||||
#ifndef NDEBUG
|
||||
// This code only works if addIntervalsForSpills retursn a
|
||||
// sorted interval list. Assert this is the case now.
|
||||
|
Loading…
Reference in New Issue
Block a user