mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
Fix a warning about comparing signed and unsigned values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56040 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8ec3389aaf
commit
cb89309399
@ -1486,7 +1486,7 @@ Value *InstCombiner::SimplifyDemandedVectorElts(Value *V, uint64_t DemandedElts,
|
||||
bool NewUndefElts = false;
|
||||
for (unsigned i = 0; i < VWidth; i++) {
|
||||
unsigned MaskVal = Shuffle->getMaskValue(i);
|
||||
if (MaskVal == -1) {
|
||||
if (MaskVal == -1u) {
|
||||
uint64_t NewBit = 1ULL << i;
|
||||
UndefElts |= NewBit;
|
||||
} else if (MaskVal < VWidth) {
|
||||
|
Loading…
Reference in New Issue
Block a user