diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-08-28 12:48:41 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-08-28 12:48:41 +0000 |
| commit | 14e07d7f4bf21c04f6177c6022257317c8c6f7e4 (patch) | |
| tree | 9b524b0de7af27f671afb394acb0ec2e5b31a3b8 | |
| parent | f46ba4f0771be75016b3a2cde6779e5d0210350f (diff) | |
| download | bcm5719-llvm-14e07d7f4bf21c04f6177c6022257317c8c6f7e4.tar.gz bcm5719-llvm-14e07d7f4bf21c04f6177c6022257317c8c6f7e4.zip | |
[DAGCombine] Fix cppcheck shadow variable warning. NFCI.
We already have an outer Ops variable.
llvm-svn: 370197
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 62368501d9a..ed8c6b81b24 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -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); } } |

