diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-25 19:37:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-25 19:37:44 +0000 |
commit | 95c34f2efd5051a4b7bc872435807c0b114b459c (patch) | |
tree | 41c45054ca660dca48c0d606d3150595fc913815 /lib/CodeGen/RegAllocLinearScan.cpp | |
parent | 87124425d093bba29ddf2bc7b13232b276031abd (diff) |
Add an assertion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocLinearScan.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp index 42029dc6b0..b45281e671 100644 --- a/lib/CodeGen/RegAllocLinearScan.cpp +++ b/lib/CodeGen/RegAllocLinearScan.cpp @@ -378,6 +378,7 @@ void RA::assignRegOrStackSlotAtInterval(IntervalPtrs::value_type cur) } DEBUG(std::cerr << "\t\tregister with min weight: " << 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, // push it back in unhandled and let the linear scan algorithm run |