aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/TargetInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
-rw-r--r--lib/CodeGen/TargetInfo.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp
index 128bb44bb5..4693fcb7e2 100644
--- a/lib/CodeGen/TargetInfo.cpp
+++ b/lib/CodeGen/TargetInfo.cpp
@@ -3225,19 +3225,7 @@ MipsABIInfo::returnAggregateInRegs(QualType RetTy, uint64_t Size) const {
if (!BT || !BT->isFloatingPoint())
break;
- switch (BT->getKind()) {
- case BuiltinType::Float:
- RTList.push_back(llvm::Type::getFloatTy(getVMContext()));
- break;
- case BuiltinType::Double:
- RTList.push_back(llvm::Type::getDoubleTy(getVMContext()));
- break;
- case BuiltinType::LongDouble:
- RTList.push_back(llvm::Type::getFP128Ty(getVMContext()));
- break;
- default:
- assert(false && "Unexpexted floating point type.");
- }
+ RTList.push_back(GetFloatingPointTy(BT));
}
if (i == e)