summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-11-05 22:01:44 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-11-05 22:01:44 +0000
commite010eb3041c03fb9bbdc16f036ff69a3bbad6dfa (patch)
treeb944da7531522320132e68eaf40fd2dbf52c3d10 /lib/Target
parent32c1a82a6b1d934e30e05c0e18b9e57fde96c56f (diff)
downloadllvm-e010eb3041c03fb9bbdc16f036ff69a3bbad6dfa.tar.gz
llvm-e010eb3041c03fb9bbdc16f036ff69a3bbad6dfa.tar.bz2
llvm-e010eb3041c03fb9bbdc16f036ff69a3bbad6dfa.tar.xz
Suppress signed/unsigned comparison warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167410 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/X86/X86ISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index a42b25b65f..afc71db005 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));