aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2012-09-06 10:32:08 +0000
committerJames Molloy <james.molloy@arm.com>2012-09-06 10:32:08 +0000
commit951543491fcc01486a926f0dcb37815ffff2051f (patch)
tree0b7e490b6b19692be405a6683de0fbab34de7fff /lib/Target/ARM
parent3bd51b8df3212f765e6ffee06e32b9a670f9b16c (diff)
downloadexternal_llvm-951543491fcc01486a926f0dcb37815ffff2051f.zip
external_llvm-951543491fcc01486a926f0dcb37815ffff2051f.tar.gz
external_llvm-951543491fcc01486a926f0dcb37815ffff2051f.tar.bz2
Fix self-host; ensure signedness is consistent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163306 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r--lib/Target/ARM/ARMISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp
index 62c7589..5f3a9c7 100644
--- a/lib/Target/ARM/ARMISelLowering.cpp
+++ b/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<SDValue, int> ValueCounts;
+ DenseMap<SDValue, unsigned> 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)) {