Fix '32-bit shift implicitly converted to 64 bits' warning by using APInt::setBit instead.

llvm-svn: 331359
This commit is contained in:
Simon Pilgrim 2018-05-02 14:22:30 +00:00
parent 18fa2323b6
commit f53ee8e640
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}