summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit18d27620483df6a34ef620a1b8d37b1aee0f17d2 (patch)
tree735318c35015a8e9eb4cd1c19b757a1fc1a75c33 /llvm/lib
parent27121c15438055fd07f0dd2f2f4b2e3645d9bc5c (diff)
downloadbcm5719-llvm-18d27620483df6a34ef620a1b8d37b1aee0f17d2.tar.gz
bcm5719-llvm-18d27620483df6a34ef620a1b8d37b1aee0f17d2.zip
Suppress signed/unsigned comparison warning.
llvm-svn: 167410
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index a42b25b65f7..afc71db0057 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<unsigned, MVT> LT =
getTypeLegalizationCost(Val->getContext(), TLI->getValueType(Val));
OpenPOWER on IntegriCloud