mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-30 22:18:46 +00:00
Add an assertion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11830 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -378,6 +378,7 @@ void RA::assignRegOrStackSlotAtInterval(IntervalPtrs::value_type cur)
|
|||||||
}
|
}
|
||||||
DEBUG(std::cerr << "\t\tregister with min weight: "
|
DEBUG(std::cerr << "\t\tregister with min weight: "
|
||||||
<< mri_->getName(minReg) << " (" << minWeight << ")\n");
|
<< mri_->getName(minReg) << " (" << minWeight << ")\n");
|
||||||
|
assert(minReg != 0 && "Didn't find a register to spill?");
|
||||||
|
|
||||||
// if the current has the minimum weight, we need to modify it,
|
// if the current has the minimum weight, we need to modify it,
|
||||||
// push it back in unhandled and let the linear scan algorithm run
|
// push it back in unhandled and let the linear scan algorithm run
|
||||||
|
Reference in New Issue
Block a user