forked from OSchip/llvm-project
Fix AsmPrinter crashes with assertion. Bug 15318 in Bugzilla
llvm-svn: 177472
This commit is contained in:
parent
5251886cd8
commit
be99cc3a3e
|
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue