projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a01c0cc
)
Revert previous patch. Additional tests fail.
author
Reid Spencer
<rspencer@reidspencer.com>
Thu, 22 Dec 2005 21:46:37 +0000
(21:46 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Thu, 22 Dec 2005 21:46:37 +0000
(21:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24968
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Constants.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Constants.cpp
b/lib/VMCore/Constants.cpp
index c1324b6b265d769c0c9691b367e69954fed1b5b5..080baf8d63bd84bb40ec62360e92a55546edf04b 100644
(file)
--- 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...
}