A file missed from previous checkin.

llvm-svn: 57330
This commit is contained in:
Dale Johannesen 2008-10-09 23:01:07 +00:00
parent 4f0bd68cfe
commit 76b2391581
1 changed files with 2 additions and 1 deletions

View File

@ -262,11 +262,12 @@ public:
bool isExactlyValue(const APFloat& V) const;
bool isExactlyValue(double V) const {
bool ignored;
// convert is not supported on this type
if (&Val.getSemantics() == &APFloat::PPCDoubleDouble)
return false;
APFloat FV(V);
FV.convert(Val.getSemantics(), APFloat::rmNearestTiesToEven);
FV.convert(Val.getSemantics(), APFloat::rmNearestTiesToEven, &ignored);
return isExactlyValue(FV);
}
/// Methods for support type inquiry through isa, cast, and dyn_cast: