mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-30 00:16:48 +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:
@@ -126,9 +126,10 @@ void RegScavenger::forward() {
|
|||||||
MBBI = MBB->begin();
|
MBBI = MBB->begin();
|
||||||
Tracking = true;
|
Tracking = true;
|
||||||
} else {
|
} 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);
|
MBBI = llvm::next(MBBI);
|
||||||
}
|
}
|
||||||
|
assert(MBBI != MBB->end() && "Already at the end of the basic block!");
|
||||||
|
|
||||||
MachineInstr *MI = MBBI;
|
MachineInstr *MI = MBBI;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user