[cfe-commits] r46639 - /cfe/trunk/CodeGen/CGBuiltin.cpp
Anders Carlsson
andersca at mac.com
Fri Feb 1 08:06:34 PST 2008
Author: andersca
Date: Fri Feb 1 10:06:34 2008
New Revision: 46639
URL: http://llvm.org/viewvc/llvm-project?rev=46639&view=rev
Log:
Generate correct code for __builtin_huge_val
Modified:
cfe/trunk/CodeGen/CGBuiltin.cpp
Modified: cfe/trunk/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGBuiltin.cpp?rev=46639&r1=46638&r2=46639&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/CodeGen/CGBuiltin.cpp Fri Feb 1 10:06:34 2008
@@ -158,11 +158,11 @@
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: {
More information about the cfe-commits
mailing list