diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2005-12-22 21:46:37 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2005-12-22 21:46:37 +0000 |
commit | e4ae72a4e6b3dc59c55f6aeb0697c82d0fd1d409 (patch) | |
tree | 666c9dafd69994013a9c8593625f44fa660fe37a | |
parent | 4c141d047c5c67cbb66cb9ab8d0cf64ec9a322e2 (diff) | |
download | bcm5719-llvm-e4ae72a4e6b3dc59c55f6aeb0697c82d0fd1d409.tar.gz bcm5719-llvm-e4ae72a4e6b3dc59c55f6aeb0697c82d0fd1d409.zip |
Revert previous patch. Additional tests fail.
llvm-svn: 24968
-rw-r--r-- | llvm/lib/VMCore/Constants.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp index c1324b6b265..080baf8d63b 100644 --- a/llvm/lib/VMCore/Constants.cpp +++ b/llvm/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... } |