mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
A file missed from previous checkin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
23a98551ab
commit
8aaec36fa7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user