From a2dabd1ee441affb4247a9860506c9ef90256cdb Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 2 May 2018 14:22:30 +0000 Subject: [PATCH] Fix '32-bit shift implicitly converted to 64 bits' warning by using APInt::setBit instead. llvm-svn: 331359 --- lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp b/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp index 7d117a5179e..b61c0b89c00 100644 --- a/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp +++ b/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; }