mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
Revert previous patch. Additional tests fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24968 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a01c0ccb63
commit
14f497452f
@ -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!
|
// TODO: Figure out how to test if a double can be cast to a float!
|
||||||
case Type::FloatTyID:
|
case Type::FloatTyID:
|
||||||
float FV = float(Val);
|
|
||||||
double DV = double(FV);
|
|
||||||
return IsNAN(Val) || Val == DV;
|
|
||||||
case Type::DoubleTyID:
|
case Type::DoubleTyID:
|
||||||
return true; // This is the largest type...
|
return true; // This is the largest type...
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user