diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-02-20 21:30:56 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-02-20 21:30:56 +0000 |
commit | e811636f3314e2b47048d39a4601f9dda79e97f6 (patch) | |
tree | c6e8b3a03b38a10547585c967fb2464b19e7a969 | |
parent | e26bff22dbcfec2074a7502dd56683fc7f55912a (diff) |
This cast broke lots of tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34457 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Constants.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index cb61b0b5c5..fa35a8953c 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); } } |