diff options
author | Hao Liu <Hao.Liu@arm.com> | 2013-03-20 01:46:36 +0000 |
---|---|---|
committer | Hao Liu <Hao.Liu@arm.com> | 2013-03-20 01:46:36 +0000 |
commit | b631a41177de3dabe6ce273e515a1501a4387054 (patch) | |
tree | c5d42afec8915ccb3a143a9f0dfe89108d69e12d /lib | |
parent | 4776bce28cb7d669329222c3d9cf6a97d6881c96 (diff) |
Fix AsmPrinter crashes with assertion. Bug 15318 in Bugzilla
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Support/APFloat.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index 5b68fbb270..6182e34150 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp @@ -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()); } |