Skip to content

Commit 9f294fc

Browse files
[AtomicExpandPass] Silence static analyzer warnings about operator priority. NFCI.
1 parent f01b9aa commit 9f294fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/AtomicExpandPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ static PartwordMaskValues createMaskInstrs(IRBuilder<> &Builder, Instruction *I,
674674

675675
Ret.ShiftAmt = Builder.CreateTrunc(Ret.ShiftAmt, Ret.WordType, "ShiftAmt");
676676
Ret.Mask = Builder.CreateShl(
677-
ConstantInt::get(Ret.WordType, (1 << ValueSize * 8) - 1), Ret.ShiftAmt,
677+
ConstantInt::get(Ret.WordType, (1 << (ValueSize * 8)) - 1), Ret.ShiftAmt,
678678
"Mask");
679679
Ret.Inv_Mask = Builder.CreateNot(Ret.Mask, "Inv_Mask");
680680

0 commit comments

Comments
 (0)