diff options
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 4743a039..954af7f 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp @@ -349,9 +349,9 @@ void APInt::clearBitsSlowCase(unsigned LoBit, unsigned HiBit) { // Create a high mask with ones above HiBit. uint64_t HiMask = ~(WORDTYPE_MAX >> (APINT_BITS_PER_WORD - HiShiftAmt)); // If LoWord and HiWord are equal, then we combine the masks. Otherwise, - // set the bits in HiWord. + // clear the bits in HiWord. if (HiWord == LoWord) - LoMask &= HiMask; + LoMask |= HiMask; else U.pVal[HiWord] &= HiMask; } |