diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-10-27 23:49:00 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-10-27 23:49:00 +0000 |
commit | 1fa9d301a83569e8b0f4224097e0869c8a06f879 (patch) | |
tree | 5d8e1e9c64b8bcadabd458833a890c27f79aae52 | |
parent | f514f5279043652a8ac915e8e3c176d53980a128 (diff) |
Fix compiler warnings about signed/unsigned comparisons.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117511 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 5538a28b3a..8509387447 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -4575,9 +4575,9 @@ static SDValue PerformVECTOR_SHUFFLECombine(SDNode *N, SelectionDAG &DAG) { for (unsigned n = 0; n < NumElts; ++n) { int MaskElt = SVN->getMaskElt(n); int NewElt = -1; - if (MaskElt < HalfElts) + if (MaskElt < (int)HalfElts) NewElt = MaskElt; - else if (MaskElt >= NumElts && MaskElt < NumElts + HalfElts) + else if (MaskElt >= (int)NumElts && MaskElt < (int)(NumElts + HalfElts)) NewElt = HalfElts + MaskElt - NumElts; NewMask.push_back(NewElt); } |