[llvm-commits] CVS: llvm/lib/VMCore/Constants.cpp
Evan Cheng
evan.cheng at apple.com
Tue Feb 20 13:31:13 PST 2007
Changes in directory llvm/lib/VMCore:
Constants.cpp updated: 1.219 -> 1.220
---
Log message:
This cast broke lots of tests.
---
Diffs of the changes: (+1 -1)
Constants.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/VMCore/Constants.cpp
diff -u llvm/lib/VMCore/Constants.cpp:1.219 llvm/lib/VMCore/Constants.cpp:1.220
--- llvm/lib/VMCore/Constants.cpp:1.219 Tue Feb 20 01:17:17 2007
+++ llvm/lib/VMCore/Constants.cpp Tue Feb 20 15:30:56 2007
@@ -248,7 +248,7 @@
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);
}
}
More information about the llvm-commits
mailing list