summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2008-02-01 16:06:34 +0000
committerAnders Carlsson <andersca@mac.com>2008-02-01 16:06:34 +0000
commitf4f3679eeaf16dd8342ffd3d1b4913abd575e55d (patch)
tree467a8bd5c4b2b090c9c8ecbe3d8fc54564b6cfc9
parent59435b2f9afafe836eb6666eda1d02eeb5389dff (diff)
downloadbcm5719-llvm-f4f3679eeaf16dd8342ffd3d1b4913abd575e55d.tar.gz
bcm5719-llvm-f4f3679eeaf16dd8342ffd3d1b4913abd575e55d.zip
Generate correct code for __builtin_huge_val
llvm-svn: 46639
-rw-r--r--clang/CodeGen/CGBuiltin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/CodeGen/CGBuiltin.cpp b/clang/CodeGen/CGBuiltin.cpp
index 03fe13cd5c2..f3eef1f4ae2 100644
--- a/clang/CodeGen/CGBuiltin.cpp
+++ b/clang/CodeGen/CGBuiltin.cpp
@@ -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: {
OpenPOWER on IntegriCloud