forked from OSchip/llvm-project
Add parentheses around arithmetic in operand of '|'.
This avoids a operator precedence warning for mixing + and | in an expression. I checked that this matches the definition in the Split DWARF proposal. Patch by Cong Liu! Differential Revision: http://reviews.llvm.org/D17375 llvm-svn: 261207
This commit is contained in:
parent
3592a6ec6b
commit
e593094a15
|
@ -238,7 +238,7 @@ static void writeIndex(MCStreamer &Out, MCSection *Section,
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue