aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-10 01:09:32 +0000
committerDan Gohman <gohman@apple.com>2008-09-10 01:09:32 +0000
commit24f6ee2aae8796a6d4b7c5a4e542bbdb36b1d01e (patch)
treeee8f0ef31d21da5cfeb686dab246dac3ae867c28 /lib/Transforms
parentf43873282b6ff9a967c67a98665f48292fc4b9d6 (diff)
downloadexternal_llvm-24f6ee2aae8796a6d4b7c5a4e542bbdb36b1d01e.zip
external_llvm-24f6ee2aae8796a6d4b7c5a4e542bbdb36b1d01e.tar.gz
external_llvm-24f6ee2aae8796a6d4b7c5a4e542bbdb36b1d01e.tar.bz2
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
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
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 @@ 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) {