aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-12-22 21:46:37 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-12-22 21:46:37 +0000
commit14f497452fae9e7096f5e7e52ec1f71328f3ddcf (patch)
treee60c92d69767833f70e3454b85de9abe2678a5fb /lib/VMCore
parenta01c0ccb63c9c585141c925ae408d83f445350f6 (diff)
downloadexternal_llvm-14f497452fae9e7096f5e7e52ec1f71328f3ddcf.zip
external_llvm-14f497452fae9e7096f5e7e52ec1f71328f3ddcf.tar.gz
external_llvm-14f497452fae9e7096f5e7e52ec1f71328f3ddcf.tar.bz2
Revert previous patch. Additional tests fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24968 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Constants.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp
index c1324b6..080baf8 100644
--- a/lib/VMCore/Constants.cpp
+++ b/lib/VMCore/Constants.cpp
@@ -482,9 +482,6 @@ bool ConstantFP::isValueValidForType(const Type *Ty, double Val) {
// TODO: Figure out how to test if a double can be cast to a float!
case Type::FloatTyID:
- float FV = float(Val);
- double DV = double(FV);
- return IsNAN(Val) || Val == DV;
case Type::DoubleTyID:
return true; // This is the largest type...
}