projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6d7ad3
)
Use the right induction variable.
author
Chris Lattner
<sabre@nondot.org>
Tue, 2 Mar 2010 02:37:23 +0000
(
02:37
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 2 Mar 2010 02:37:23 +0000
(
02:37
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97541
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index e62e5591b8d31411dd7deb64319a23cd03b88774..c0b0d7254fe820ef33d03ec8b4cda0ebbadd40f8 100644
(file)
--- 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
));
}
}