diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index 0bfc95bde3f..27d4741321c 100644 --- a/lib/Support/APInt.cpp +++ b/lib/Support/APInt.cpp @@ -605,7 +605,7 @@ APInt& APInt::set() { } // Set all the bits in all the words. - for (uint32_t i = 0; i < getNumWords() - 1; ++i) + for (uint32_t i = 0; i < getNumWords(); ++i) pVal[i] = -1ULL; // Clear the unused ones return clearUnusedBits();