diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-02 02:37:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-02 02:37:23 +0000 |
commit | 6183fbd7267a7de857e32a2106cfb46a219728f1 (patch) | |
tree | 847960594db15eb967d95b3d919f0df3e2da5e49 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | c6d7ad3c7d83e9af29bf3ba3bf3280e72a952f98 (diff) |
Use the right induction variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97541 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index e62e5591b8..c0b0d7254f 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1680,8 +1680,8 @@ HandleMergeInputChains(SmallVectorImpl<SDNode*> &ChainNodesMatched, // that are not part of the pattern we're matching. for (unsigned op = 0, e = N->getNumOperands(); op != e; ++op) { if (!std::count(ChainNodesMatched.begin(), ChainNodesMatched.end(), - N->getOperand(i).getNode())) - InputChains.push_back(N->getOperand(i)); + N->getOperand(op).getNode())) + InputChains.push_back(N->getOperand(op)); } } |