diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-05-02 14:22:30 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-05-02 14:22:30 +0000 |
| commit | f53ee8e640891747935aac02889d7350e95966b4 (patch) | |
| tree | a14ef27b41483eef462b796e30c6a71b60135d50 /llvm | |
| parent | 18fa2323b681aae4c4e3810f2c4a1f2c2baadbb3 (diff) | |
| download | bcm5719-llvm-f53ee8e640891747935aac02889d7350e95966b4.tar.gz bcm5719-llvm-f53ee8e640891747935aac02889d7350e95966b4.zip | |
Fix '32-bit shift implicitly converted to 64 bits' warning by using APInt::setBit instead.
llvm-svn: 331359
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp b/llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp index 7d117a5179e..b61c0b89c00 100644 --- a/llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp +++ b/llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp @@ -82,7 +82,7 @@ static bool matchMaskedCmpOp(Value *V, std::pair<Value *, APInt> &Result) { Result.first = Candidate; // Fill in the mask bit derived from the shift constant. - Result.second |= (1 << BitIndex); + Result.second.setBit(BitIndex); return Result.first == Candidate; } |

