aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/APFloat.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-11-26 01:11:57 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-11-26 01:11:57 +0000
commit794a7dbce030f93315b1305f83a374232f09bba5 (patch)
tree95cef1d580a5f5c03ec8534559a2db89f8a1dd7b /lib/Support/APFloat.cpp
parent2efbbb38ba7b9601202f2271301f07195dea8959 (diff)
Revert r60042. IndVarSimplify should check if APFloat is PPCDoubleDouble first before trying to convert it to an integer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60072 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/APFloat.cpp')
-rw-r--r--lib/Support/APFloat.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp
index 128fee4f01..a65e55afb5 100644
--- a/lib/Support/APFloat.cpp
+++ b/lib/Support/APFloat.cpp
@@ -117,11 +117,6 @@ namespace {
&& "Compile-time arithmetic does not support these semantics");
}
- static inline bool
- isArithmeticOk(const llvm::fltSemantics &semantics) {
- return semantics.arithmeticOK;
- }
-
/* Return the value of a decimal exponent of the form
[+-]ddddddd.
@@ -1792,8 +1787,7 @@ APFloat::convertToSignExtendedInteger(integerPart *parts, unsigned int width,
const integerPart *src;
unsigned int dstPartsCount, truncatedBits;
- if (!isArithmeticOk(*semantics))
- return opInvalidOp;
+ assertArithmeticOK(*semantics);
*isExact = false;