Fix a warning about comparing signed and unsigned values.

llvm-svn: 56040
This commit is contained in:
Dan Gohman 2008-09-10 01:09:32 +00:00
parent 1ac90281be
commit 3809753d3b

View File

@ -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) {