Fix AsmPrinter crashes with assertion. Bug 15318 in Bugzilla

llvm-svn: 177472
This commit is contained in:
Hao Liu 2013-03-20 01:46:36 +00:00
parent 5251886cd8
commit be99cc3a3e
1 changed files with 2 additions and 4 deletions

View File

@ -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());
}