mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Fix warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5316 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3c3c82d05d
commit
ac4dfd0643
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user