From c47bc3321825ff3aa9aee4ff125c5e9ee853e449 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 8 Apr 2012 19:04:45 +0000 Subject: [PATCH] Silence sign-compare warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154297 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index f1b9f4385e4..a8822953caf 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -7824,7 +7824,7 @@ SDValue DAGCombiner::visitVECTOR_SHUFFLE(SDNode *N) { Idx = OtherSV->getMaskElt(Idx); // The combined shuffle must map each index to itself. - if (Idx != i && Idx != -1) + if ((unsigned)Idx != i && Idx != -1) return SDValue(); }