From 79f82f9fd5dd5bceaf2a3b1c0426b3e7f40b6474 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Sun, 20 Apr 2008 01:34:03 +0000 Subject: [PATCH] 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 --- lib/Support/APFloat.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index 8ecfa3544a9..35de71497a9 100644 --- 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(); -- 2.34.1