]> granicus.if.org Git - clang/commitdiff
Generate correct code for __builtin_huge_val
authorAnders Carlsson <andersca@mac.com>
Fri, 1 Feb 2008 16:06:34 +0000 (16:06 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 1 Feb 2008 16:06:34 +0000 (16:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46639 91177308-0d34-0410-b5e6-96231b3b80d8

CodeGen/CGBuiltin.cpp

index 03fe13cd5c23e93f6167cb747786b9b01f76a602..f3eef1f4ae29b5fa32f54c31e73e994772d0226d 100644 (file)
@@ -158,11 +158,11 @@ RValue CodeGenFunction::EmitBuiltinExpr(unsigned BuiltinID, const CallExpr *E) {
     Value *F = CGM.getIntrinsic(Intrinsic::bswap, &ArgType, 1);
     return RValue::get(Builder.CreateCall(F, ArgValue, "tmp"));
   }
-  case Builtin::BI__builtin_huge_val:
   case Builtin::BI__builtin_inff: {
     APFloat f(APFloat::IEEEsingle, APFloat::fcInfinity, false);
     return RValue::get(ConstantFP::get(llvm::Type::FloatTy, f));
   }
+  case Builtin::BI__builtin_huge_val:
   case Builtin::BI__builtin_inf:
   // FIXME: mapping long double onto double.      
   case Builtin::BI__builtin_infl: {