From: Chris Lattner Date: Tue, 2 Mar 2010 02:37:23 +0000 (+0000) Subject: Use the right induction variable. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=6183fbd7267a7de857e32a2106cfb46a219728f1 Use the right induction variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97541 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index e62e5591b8d..c0b0d7254fe 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1680,8 +1680,8 @@ HandleMergeInputChains(SmallVectorImpl &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)); } }