summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-25 19:37:44 +0000
committerChris Lattner <sabre@nondot.org>2004-02-25 19:37:44 +0000
commitf5a393a13356a96472790cba163a80cf211ca269 (patch)
tree8001ecd7b87d47b80c09398109ad8cbcfc8da028 /llvm/lib/CodeGen
parent64c9b223bd76e5038b689f464af679732050fb32 (diff)
downloadbcm5719-llvm-f5a393a13356a96472790cba163a80cf211ca269.tar.gz
bcm5719-llvm-f5a393a13356a96472790cba163a80cf211ca269.zip
Add an assertion
llvm-svn: 11830
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/RegAllocLinearScan.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
index 42029dc6b0a..b45281e6719 100644
--- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud