mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 15:33:16 +00:00
Add an assertion instead of crashing when the scavenger goes past the end
of a basic block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128925 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
06d2b4223f
commit
bdaa9dc4a4
@ -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…
Reference in New Issue
Block a user