projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5251886
)
Fix AsmPrinter crashes with assertion. Bug 15318 in Bugzilla
author
Hao Liu
<Hao.Liu@arm.com>
Wed, 20 Mar 2013 01:46:36 +0000
(
01:46
+0000)
committer
Hao Liu
<Hao.Liu@arm.com>
Wed, 20 Mar 2013 01:46:36 +0000
(
01:46
+0000)
llvm-svn: 177472
llvm/lib/Support/APFloat.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/APFloat.cpp
b/llvm/lib/Support/APFloat.cpp
index
5b68fbb
..
6182e34
100644
(file)
--- a/
llvm/lib/Support/APFloat.cpp
+++ b/
llvm/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());
}