From 9d30dc243224641d56d89176cb0b5cc4551a00f0 Mon Sep 17 00:00:00 2001 From: James Molloy Date: Thu, 6 Sep 2012 10:32:08 +0000 Subject: Fix self-host; ensure signedness is consistent. llvm-svn: 163306 --- llvm/lib/Target/ARM/ARMISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp') diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index 62c758931e1..5f3a9c773f2 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -4175,7 +4175,7 @@ SDValue ARMTargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG, // Map of the number of times a particular SDValue appears in the // element list. - DenseMap ValueCounts; + DenseMap ValueCounts; SDValue Value; for (unsigned i = 0; i < NumElts; ++i) { SDValue V = Op.getOperand(i); @@ -4187,7 +4187,7 @@ SDValue ARMTargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG, isConstant = false; ValueCounts.insert(std::make_pair(V, 0)); - int &Count = ValueCounts[V]; + unsigned &Count = ValueCounts[V]; // Is this value dominant? (takes up more than half of the lanes) if (++Count > (NumElts / 2)) { -- cgit v1.2.3