Suppress signed/unsigned comparison warning.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 5 Nov 2012 22:01:44 +0000 (22:01 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 5 Nov 2012 22:01:44 +0000 (22:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167410 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index a42b25b65f7bbb80af6d898e45949ce7410ef8d7..afc71db0057d584f3b8fbec3896e533aeac09aea 100644 (file)
@@ -17555,10 +17555,10 @@ X86VectorTargetTransformInfo::getArithmeticInstrCost(unsigned Opcode,
 
 unsigned
 X86VectorTargetTransformInfo::getVectorInstrCost(unsigned Opcode, Type *Val,
-                                    unsigned Index) const {
+                                                 unsigned Index) const {
   assert(Val->isVectorTy() && "This must be a vector type");
 
-  if (Index != -1) {
+  if (Index != -1u) {
     // Legalize the type.
     std::pair<unsigned, MVT> LT =
     getTypeLegalizationCost(Val->getContext(), TLI->getValueType(Val));