mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
Fix assertion to not dereference end!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14991 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
59073e02cc
commit
331cb7dde1
@ -399,8 +399,8 @@ void RA::assignRegOrStackSlotAtInterval(IntervalPtrs::value_type cur)
|
|||||||
std::vector<LiveInterval*>::iterator addedItEnd = added.end();
|
std::vector<LiveInterval*>::iterator addedItEnd = added.end();
|
||||||
for (IntervalPtrs::iterator i = unhandled_.begin(), e =unhandled_.end();
|
for (IntervalPtrs::iterator i = unhandled_.begin(), e =unhandled_.end();
|
||||||
i != e && addedIt != addedItEnd; ++i) {
|
i != e && addedIt != addedItEnd; ++i) {
|
||||||
while ((*i)->start() > (*addedIt)->start() &&
|
while (addedIt != addedItEnd &&
|
||||||
addedIt != addedItEnd) {
|
(*i)->start() > (*addedIt)->start()) {
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
// This code only works if addIntervalsForSpills retursn a
|
// This code only works if addIntervalsForSpills retursn a
|
||||||
// sorted interval list. Assert this is the case now.
|
// sorted interval list. Assert this is the case now.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user