projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8712442
)
Add an assertion
author
Chris Lattner
<sabre@nondot.org>
Wed, 25 Feb 2004 19:37:44 +0000
(19:37 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 25 Feb 2004 19:37:44 +0000
(19:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11830
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/RegAllocLinearScan.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/RegAllocLinearScan.cpp
b/lib/CodeGen/RegAllocLinearScan.cpp
index 42029dc6b0af062eb0fbe276a1e6b65758b95a17..b45281e671958ebcff8f0cb2c33e8be025027eff 100644
(file)
--- 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