commit | cb8930939988b92db2a1010a30e586df979d0225 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Wed Sep 10 01:09:32 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Wed Sep 10 01:09:32 2008 +0000 |
tree | ee8f0ef31d21da5cfeb686dab246dac3ae867c28 | |
parent | 8ec3389aafb69f5320c32c75442be8deb7f9d70c [diff] [blame] |
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
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 3ec97dd..03fdc08 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -1486,7 +1486,7 @@ 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) {