[llvm] r177472 - Fix AsmPrinter crashes with assertion. Bug 15318 in Bugzilla
Hao Liu
Hao.Liu at arm.com
Tue Mar 19 18:46:36 PDT 2013
Author: haoliu
Date: Tue Mar 19 20:46:36 2013
New Revision: 177472
URL: http://llvm.org/viewvc/llvm-project?rev=177472&view=rev
Log:
Fix AsmPrinter crashes with assertion. Bug 15318 in Bugzilla
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=177472&r1=177471&r2=177472&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APFloat.cpp (original)
+++ llvm/trunk/lib/Support/APFloat.cpp Tue Mar 19 20:46:36 2013
@@ -3311,10 +3311,8 @@ namespace {
significand = significand.udiv(divisor);
- // Truncate the significand down to its active bit count, but
- // don't try to drop below 32.
- unsigned newPrecision = std::max(32U, significand.getActiveBits());
- significand = significand.trunc(newPrecision);
+ // Truncate the significand down to its active bit count.
+ significand = significand.trunc(significand.getActiveBits());
}
More information about the llvm-commits
mailing list