From: Simon Pilgrim Date: Sat, 9 Dec 2017 16:04:57 +0000 (+0000) Subject: Fix signed/unsigned gcc warning. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b6ce32528837a4525e6382f73ae5d9baa7345ef;p=llvm Fix signed/unsigned gcc warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320253 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp b/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp index 835b088050e..26bceff71f4 100644 --- a/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp +++ b/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp @@ -501,7 +501,7 @@ bool ReverseDeltaNetwork::route(ElemType *P, RowType *T, unsigned Size, // Reorder the working permutation according to the computed switch table // for the last step (i.e. Pets). - for (ElemType J = 0; J != Size/2; ++J) { + for (ElemType J = 0, E = Size / 2; J != E; ++J) { ElemType PJ = P[J]; // Current values of P[J] ElemType PC = P[J+Size/2]; // and P[conj(J)] ElemType QJ = PJ; // New values of P[J]