mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Fix some comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18596 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eb61d60e1b
commit
79457c791e
@ -440,8 +440,9 @@ bool ConstantFP::isValueValidForType(const Type *Ty, double Val) {
|
||||
default:
|
||||
return false; // These can't be represented as floating point!
|
||||
|
||||
// TODO: Figure out how to test if a double can be cast to a float!
|
||||
case Type::FloatTyID:
|
||||
// Since we're passed a double but the ConstantFP is of type float, make
|
||||
// sure that the double value is in the range of a float
|
||||
return isinf(Val) || isnan(Val) || (Val >= -HUGE_VALF && Val <= HUGE_VALF);
|
||||
|
||||
case Type::DoubleTyID:
|
||||
|
Loading…
Reference in New Issue
Block a user