Revert previous patch. Additional tests fail.

llvm-svn: 24968
This commit is contained in:
Reid Spencer 2005-12-22 21:46:37 +00:00
parent 4c141d047c
commit e4ae72a4e6
1 changed files with 0 additions and 3 deletions

View File

@ -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...
}