projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8eb63f
)
Check that APFloat::convert is not trying to target
author
Dale Johannesen
<dalej@apple.com>
Sun, 20 Apr 2008 01:34:03 +0000
(
01:34
+0000)
committer
Dale Johannesen
<dalej@apple.com>
Sun, 20 Apr 2008 01:34:03 +0000
(
01:34
+0000)
ppc long double, which doesn't work.
This may break some stuff temporarily, but I want to
avoid the propagation of code that assumes this works.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49983
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/APFloat.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/APFloat.cpp
b/lib/Support/APFloat.cpp
index 8ecfa3544a90b7459a5e568ae66adc99a8a42ce4..35de71497a9c283a1df5dd8e68c158d132506c66 100644
(file)
--- a/
lib/Support/APFloat.cpp
+++ b/
lib/Support/APFloat.cpp
@@
-1678,6
+1678,7
@@
APFloat::convert(const fltSemantics &toSemantics,
opStatus fs;
assertArithmeticOK(*semantics);
+ assertArithmeticOK(toSemantics);
lostFraction = lfExactlyZero;
newPartCount = partCountForBits(toSemantics.precision + 1);
oldPartCount = partCount();