diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-21 07:06:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-21 07:06:27 +0000 |
commit | 2ea5c99eca017fb740f49b44eb9338018e8374d4 (patch) | |
tree | 48456b9e706a60b157cde756e6dccf52fcea2198 /llvm/lib/CodeGen/RegAllocLinearScan.cpp | |
parent | 279f96c55e86a264fdbe6500f2f1362fac2514cf (diff) | |
download | bcm5719-llvm-2ea5c99eca017fb740f49b44eb9338018e8374d4.tar.gz bcm5719-llvm-2ea5c99eca017fb740f49b44eb9338018e8374d4.zip |
Add section switching to common code generator code. Add a couple of
asserts.
llvm-svn: 24445
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocLinearScan.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index a42a366ef36..9bad0d376f8 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp @@ -547,6 +547,7 @@ void RA::assignRegOrStackSlotAtInterval(LiveInterval* cur) minReg = reg; } } + assert(minReg && "Didn't find any reg!"); DEBUG(std::cerr << "\t\tregister with min weight: " << mri_->getName(minReg) << " (" << minWeight << ")\n"); |