diff options
Diffstat (limited to 'llvm/lib/Support/APFloat.cpp')
-rw-r--r-- | llvm/lib/Support/APFloat.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index 22dd40c..00e863a 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/lib/Support/APFloat.cpp @@ -3900,8 +3900,7 @@ void IEEEFloat::makeSmallestNormalized(bool Negative) { zeroSignificand(); sign = Negative; exponent = semantics->minExponent; - significandParts()[partCountForBits(semantics->precision) - 1] |= - (((integerPart)1) << ((semantics->precision - 1) % integerPartWidth)); + APInt::tcSetBit(significandParts(), semantics->precision - 1); } IEEEFloat::IEEEFloat(const fltSemantics &Sem, const APInt &API) { |