From ac4dfd064383da680b7e6eb92487a203731b95a8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 15 Jan 2003 21:36:30 +0000 Subject: [PATCH] Fix warnings git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5316 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/SparcV9/SparcV9RegInfo.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/Target/SparcV9/SparcV9RegInfo.cpp b/lib/Target/SparcV9/SparcV9RegInfo.cpp index 8fa0037a337..d9e57911f7c 100644 --- a/lib/Target/SparcV9/SparcV9RegInfo.cpp +++ b/lib/Target/SparcV9/SparcV9RegInfo.cpp @@ -254,17 +254,16 @@ int UltraSparcRegInfo::getRegType(const LiveRange *LR) const { unsigned regClassID = LR->getRegClassID(); switch (regClassID) { + default: assert( 0 && "Unknown reg class ID"); case IntRegClassID: return IntRegType; case FloatRegClassID: if (type == Type::FloatTy) return FPSingleRegType; else if (type == Type::DoubleTy) return FPDoubleRegType; - break; assert(0 && "Unknown type in FloatRegClass"); - case IntCCRegClassID: return IntCCRegType; break; - case FloatCCRegClassID: return FloatCCRegType; break; - default: assert( 0 && "Unknown reg class ID"); return 0; + case IntCCRegClassID: return IntCCRegType; + case FloatCCRegClassID: return FloatCCRegType; } }