From e811636f3314e2b47048d39a4601f9dda79e97f6 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 20 Feb 2007 21:30:56 +0000 Subject: [PATCH] This cast broke lots of tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34457 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Constants.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index cb61b0b5c5f..fa35a8953c7 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -248,7 +248,7 @@ ConstantFP *ConstantFP::get(const Type *Ty, double V) { uint64_t IntVal = DoubleToBits(V); ConstantFP *&Slot = (*DoubleConstants)[std::make_pair(IntVal, Ty)]; if (Slot) return Slot; - return Slot = new ConstantFP(Ty, (float)V); + return Slot = new ConstantFP(Ty, V); } } -- 2.11.0