Fix warnings

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5316 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-01-15 21:36:30 +00:00
parent 3c3c82d05d
commit ac4dfd0643

View File

@ -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;
}
}