[PATCH] D17375: Add parentheses around arithmetic in operand of '|' in llvm-dwp.cpp.
Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 18 05:27:42 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL261207: Add parentheses around arithmetic in operand of '|'. (authored by d0k).
Changed prior to commit:
http://reviews.llvm.org/D17375?vs=48301&id=48302#toc
Repository:
rL LLVM
http://reviews.llvm.org/D17375
Files:
llvm/trunk/tools/llvm-dwp/llvm-dwp.cpp
Index: llvm/trunk/tools/llvm-dwp/llvm-dwp.cpp
===================================================================
--- llvm/trunk/tools/llvm-dwp/llvm-dwp.cpp
+++ llvm/trunk/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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17375.48302.patch
Type: text/x-patch
Size: 500 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160218/ed7388d1/attachment.bin>
More information about the cfe-commits
mailing list