diff options
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index babfbdc21a6..f4190eb805d 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp @@ -539,8 +539,7 @@ void APInt::clearBit(unsigned bitPosition) { /// @brief Toggle every bit to its opposite value. void APInt::flipAllBitsSlowCase() { - for (unsigned i = 0; i < getNumWords(); ++i) - pVal[i] ^= UINT64_MAX; + tcComplement(pVal, getNumWords()); clearUnusedBits(); } |