[DAGCombine] Fix cppcheck shadow variable warning. NFCI.

We already have an outer Ops variable.

llvm-svn: 370197
This commit is contained in:
Simon Pilgrim 2019-08-28 12:48:41 +00:00
parent f46ba4f077
commit 14e07d7f4b
1 changed files with 4 additions and 4 deletions

View File

@ -19552,14 +19552,14 @@ SDValue DAGCombiner::SimplifyVBinOp(SDNode *N) {
TLI.isOperationLegalOrCustomOrPromote(Opcode, NarrowVT)) {
SDLoc DL(N);
unsigned NumOperands = LHS.getNumOperands();
SmallVector<SDValue, 4> Ops;
SmallVector<SDValue, 4> ConcatOps;
for (unsigned i = 0; i != NumOperands; ++i) {
// This constant fold for operands 1 and up.
Ops.push_back(DAG.getNode(Opcode, DL, NarrowVT, LHS.getOperand(i),
RHS.getOperand(i)));
ConcatOps.push_back(DAG.getNode(Opcode, DL, NarrowVT, LHS.getOperand(i),
RHS.getOperand(i)));
}
return DAG.getNode(ISD::CONCAT_VECTORS, DL, VT, Ops);
return DAG.getNode(ISD::CONCAT_VECTORS, DL, VT, ConcatOps);
}
}