[llvm] r177472 - Fix AsmPrinter crashes with assertion. Bug 15318 in Bugzilla
Chad Rosier
mcrosier at apple.com
Wed Mar 20 10:04:02 PDT 2013
Hi Hao,
Can you please add a test case?
Chad
On Mar 19, 2013, at 6:46 PM, Hao Liu <Hao.Liu at arm.com> wrote:
> 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());
> }
>
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130320/d92839f4/attachment.html>
More information about the llvm-commits
mailing list