mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-14 09:25:25 +00:00
Add an assertion instead of crashing when the scavenger goes past the end
of a basic block. llvm-svn: 128925
This commit is contained in:
parent
26bf6ca0d3
commit
ef86806800
@ -126,9 +126,10 @@ void RegScavenger::forward() {
|
||||
MBBI = MBB->begin();
|
||||
Tracking = true;
|
||||
} else {
|
||||
assert(MBBI != MBB->end() && "Already at the end of the basic block!");
|
||||
assert(MBBI != MBB->end() && "Already past the end of the basic block!");
|
||||
MBBI = llvm::next(MBBI);
|
||||
}
|
||||
assert(MBBI != MBB->end() && "Already at the end of the basic block!");
|
||||
|
||||
MachineInstr *MI = MBBI;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user