mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
Add asserts to previous change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10893 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f5f1689ed2
commit
1893a05b28
@ -148,7 +148,9 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock* mbb,
|
|||||||
// add new interval
|
// add new interval
|
||||||
intervals_.push_back(Interval(reg));
|
intervals_.push_back(Interval(reg));
|
||||||
// update interval index for this register
|
// update interval index for this register
|
||||||
r2iMap_.insert(std::make_pair(reg, --intervals_.end()));
|
bool inserted =
|
||||||
|
r2iMap_.insert(std::make_pair(reg, --intervals_.end())).second;
|
||||||
|
assert(inserted);
|
||||||
interval = &intervals_.back();
|
interval = &intervals_.back();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -248,7 +250,9 @@ exit:
|
|||||||
intervals_.push_back(Interval(reg));
|
intervals_.push_back(Interval(reg));
|
||||||
Interval& interval = intervals_.back();
|
Interval& interval = intervals_.back();
|
||||||
// update interval index for this register
|
// update interval index for this register
|
||||||
r2iMap_.insert(std::make_pair(reg, --intervals_.end()));
|
bool inserted =
|
||||||
|
r2iMap_.insert(std::make_pair(reg, --intervals_.end())).second;
|
||||||
|
assert(inserted);
|
||||||
interval.addRange(start, end);
|
interval.addRange(start, end);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user