diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-05-08 10:07:34 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-05-08 10:07:34 +0000 |
commit | 97a0c5417906556014781b33a938bd8133baa336 (patch) | |
tree | eb8e24b9c786b2debd55d5220da12d4b8b3368ef /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | fa11fb33ad6eecfe081a9875ed27b98a1077e404 (diff) | |
download | llvm-97a0c5417906556014781b33a938bd8133baa336.zip llvm-97a0c5417906556014781b33a938bd8133baa336.tar.gz llvm-97a0c5417906556014781b33a938bd8133baa336.tar.bz2 |
Fix cppcheck operator precedence warning. NFCI.
llvm-svn: 360234
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index ea75df8..75349cb8 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -215,8 +215,8 @@ static SDValue getCopyFromParts(SelectionDAG &DAG, const SDLoc &DL, unsigned ValueBits = ValueVT.getSizeInBits(); // Assemble the power of 2 part. - unsigned RoundParts = NumParts & (NumParts - 1) ? - 1 << Log2_32(NumParts) : NumParts; + unsigned RoundParts = + (NumParts & (NumParts - 1)) ? 1 << Log2_32(NumParts) : NumParts; unsigned RoundBits = PartBits * RoundParts; EVT RoundVT = RoundBits == ValueBits ? ValueVT : EVT::getIntegerVT(*DAG.getContext(), RoundBits); |