diff options
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index a42b25b..afc71db 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/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<unsigned, MVT> LT = getTypeLegalizationCost(Val->getContext(), TLI->getValueType(Val)); |