mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-15 07:59:33 +00:00
Fix a warning about comparing signed and unsigned values.
llvm-svn: 56040
This commit is contained in:
parent
1ac90281be
commit
3809753d3b
@ -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…
x
Reference in New Issue
Block a user