[llvm-commits] [llvm] r49983 - /llvm/trunk/lib/Support/APFloat.cpp
Dale Johannesen
dalej at apple.com
Sat Apr 19 18:34:03 PDT 2008
Author: johannes
Date: Sat Apr 19 20:34:03 2008
New Revision: 49983
URL: http://llvm.org/viewvc/llvm-project?rev=49983&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Support/APFloat.cpp
Modified: llvm/trunk/lib/Support/APFloat.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APFloat.cpp?rev=49983&r1=49982&r2=49983&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APFloat.cpp (original)
+++ llvm/trunk/lib/Support/APFloat.cpp Sat Apr 19 20:34:03 2008
@@ -1678,6 +1678,7 @@
opStatus fs;
assertArithmeticOK(*semantics);
+ assertArithmeticOK(toSemantics);
lostFraction = lfExactlyZero;
newPartCount = partCountForBits(toSemantics.precision + 1);
oldPartCount = partCount();
More information about the llvm-commits
mailing list