From: Simon Pilgrim Date: Wed, 2 May 2018 14:22:30 +0000 (+0000) Subject: Fix '32-bit shift implicitly converted to 64 bits' warning by using APInt::setBit... X-Git-Tag: llvmorg-7.0.0-rc1~6931 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f53ee8e640891747935aac02889d7350e95966b4;p=platform%2Fupstream%2Fllvm.git Fix '32-bit shift implicitly converted to 64 bits' warning by using APInt::setBit instead. llvm-svn: 331359 --- diff --git a/llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp b/llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp index 7d117a5..b61c0b8 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 &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; }