forked from OSchip/llvm-project
Fix '32-bit shift implicitly converted to 64 bits' warning by using APInt::setBit instead.
llvm-svn: 331359
This commit is contained in:
parent
18fa2323b6
commit
f53ee8e640
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue