Skip to content

Commit 14e07d7

Browse files
committed
[DAGCombine] Fix cppcheck shadow variable warning. NFCI.
We already have an outer Ops variable. llvm-svn: 370197
1 parent f46ba4f commit 14e07d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19552,14 +19552,14 @@ SDValue DAGCombiner::SimplifyVBinOp(SDNode *N) {
1955219552
TLI.isOperationLegalOrCustomOrPromote(Opcode, NarrowVT)) {
1955319553
SDLoc DL(N);
1955419554
unsigned NumOperands = LHS.getNumOperands();
19555-
SmallVector<SDValue, 4> Ops;
19555+
SmallVector<SDValue, 4> ConcatOps;
1955619556
for (unsigned i = 0; i != NumOperands; ++i) {
1955719557
// This constant fold for operands 1 and up.
19558-
Ops.push_back(DAG.getNode(Opcode, DL, NarrowVT, LHS.getOperand(i),
19559-
RHS.getOperand(i)));
19558+
ConcatOps.push_back(DAG.getNode(Opcode, DL, NarrowVT, LHS.getOperand(i),
19559+
RHS.getOperand(i)));
1956019560
}
1956119561

19562-
return DAG.getNode(ISD::CONCAT_VECTORS, DL, VT, Ops);
19562+
return DAG.getNode(ISD::CONCAT_VECTORS, DL, VT, ConcatOps);
1956319563
}
1956419564
}
1956519565

0 commit comments

Comments
 (0)