mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-17 00:50:58 +00:00
Check that APFloat::convert is not trying to target
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
This commit is contained in:
parent
d8eb63fc72
commit
79f82f9fd5
@ -1678,6 +1678,7 @@ APFloat::convert(const fltSemantics &toSemantics,
|
|||||||
opStatus fs;
|
opStatus fs;
|
||||||
|
|
||||||
assertArithmeticOK(*semantics);
|
assertArithmeticOK(*semantics);
|
||||||
|
assertArithmeticOK(toSemantics);
|
||||||
lostFraction = lfExactlyZero;
|
lostFraction = lfExactlyZero;
|
||||||
newPartCount = partCountForBits(toSemantics.precision + 1);
|
newPartCount = partCountForBits(toSemantics.precision + 1);
|
||||||
oldPartCount = partCount();
|
oldPartCount = partCount();
|
||||||
|
Loading…
Reference in New Issue
Block a user