[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocLinearScan.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 25 13:38:00 PST 2004
Changes in directory llvm/lib/CodeGen:
RegAllocLinearScan.cpp updated: 1.64 -> 1.65
---
Log message:
Add an assertion
---
Diffs of the changes: (+1 -0)
Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.64 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.65
--- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.64 Tue Feb 24 02:58:30 2004
+++ llvm/lib/CodeGen/RegAllocLinearScan.cpp Wed Feb 25 13:37:44 2004
@@ -378,6 +378,7 @@
}
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
More information about the llvm-commits
mailing list