1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

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 dbfaba3cd4
commit a2dabd1ee4

View File

@ -82,7 +82,7 @@ static bool matchMaskedCmpOp(Value *V, std::pair<Value *, APInt> &Result) {
Result.first = Candidate; Result.first = Candidate;
// Fill in the mask bit derived from the shift constant. // Fill in the mask bit derived from the shift constant.
Result.second |= (1 << BitIndex); Result.second.setBit(BitIndex);
return Result.first == Candidate; return Result.first == Candidate;
} }