Index: tools/llvm-dwp/llvm-dwp.cpp =================================================================== --- tools/llvm-dwp/llvm-dwp.cpp +++ tools/llvm-dwp/llvm-dwp.cpp @@ -238,7 +238,7 @@ while (Buckets[H]) { assert(S != IndexEntries[Buckets[H] - 1].Signature && "Duplicate type unit"); - H = (H + ((S >> 32) & Mask) | 1) % Buckets.size(); + H = ((H + ((S >> 32) & Mask)) | 1) % Buckets.size(); } Buckets[H] = i + 1; }