From 18d27620483df6a34ef620a1b8d37b1aee0f17d2 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 5 Nov 2012 22:01:44 +0000 Subject: [PATCH] Suppress signed/unsigned comparison warning. llvm-svn: 167410 --- llvm/lib/Target/X86/X86ISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index a42b25b..afc71db 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -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 LT = getTypeLegalizationCost(Val->getContext(), TLI->getValueType(Val)); -- 2.7.4