diff options
author | Dávid Bolvanský <david.bolvansky@gmail.com> | 2019-11-05 13:55:46 +0100 |
---|---|---|
committer | Dávid Bolvanský <david.bolvansky@gmail.com> | 2019-11-05 13:55:46 +0100 |
commit | 9f294fc4977b361158107c389ce66d29a8f3b7ee (patch) | |
tree | da0121497275a4154f09902e25d939cda2d56f20 /llvm/lib/CodeGen/AtomicExpandPass.cpp | |
parent | f01b9aa89e8cd5d3cca0e13835302f69c1f879d2 (diff) | |
download | llvm-9f294fc4977b361158107c389ce66d29a8f3b7ee.zip llvm-9f294fc4977b361158107c389ce66d29a8f3b7ee.tar.gz llvm-9f294fc4977b361158107c389ce66d29a8f3b7ee.tar.bz2 |
[AtomicExpandPass] Silence static analyzer warnings about operator priority. NFCI.
Diffstat (limited to 'llvm/lib/CodeGen/AtomicExpandPass.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AtomicExpandPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AtomicExpandPass.cpp b/llvm/lib/CodeGen/AtomicExpandPass.cpp index 27b298d..d9ccfee 100644 --- a/llvm/lib/CodeGen/AtomicExpandPass.cpp +++ b/llvm/lib/CodeGen/AtomicExpandPass.cpp @@ -674,7 +674,7 @@ static PartwordMaskValues createMaskInstrs(IRBuilder<> &Builder, Instruction *I, Ret.ShiftAmt = Builder.CreateTrunc(Ret.ShiftAmt, Ret.WordType, "ShiftAmt"); Ret.Mask = Builder.CreateShl( - ConstantInt::get(Ret.WordType, (1 << ValueSize * 8) - 1), Ret.ShiftAmt, + ConstantInt::get(Ret.WordType, (1 << (ValueSize * 8)) - 1), Ret.ShiftAmt, "Mask"); Ret.Inv_Mask = Builder.CreateNot(Ret.Mask, "Inv_Mask"); |