From 2ea5c99eca017fb740f49b44eb9338018e8374d4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 21 Nov 2005 07:06:27 +0000 Subject: Add section switching to common code generator code. Add a couple of asserts. llvm-svn: 24445 --- llvm/lib/CodeGen/RegAllocLinearScan.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp') 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"); -- cgit v1.2.3