summaryrefslogtreecommitdiffstats
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-10-09 23:01:07 +0000
committerDale Johannesen <dalej@apple.com>2008-10-09 23:01:07 +0000
commit8aaec36fa760c9dd50627e397ca85798d9eb6e79 (patch)
treee07355ba567e88f3804914fe8f217700cfbdcc7a /include/llvm/Constants.h
parent23a98551ab65eeb8fe5019df8b7db4891582a4bd (diff)
downloadexternal_llvm-8aaec36fa760c9dd50627e397ca85798d9eb6e79.zip
external_llvm-8aaec36fa760c9dd50627e397ca85798d9eb6e79.tar.gz
external_llvm-8aaec36fa760c9dd50627e397ca85798d9eb6e79.tar.bz2
A file missed from previous checkin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57330 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 926f131..0706f61 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: