From 8aaec36fa760c9dd50627e397ca85798d9eb6e79 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Thu, 9 Oct 2008 23:01:07 +0000 Subject: [PATCH] A file missed from previous checkin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57330 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Constants.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 926f131ef5e..0706f61d12e 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -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: -- 2.34.1