The second element of the iterator is really an offset, not a link

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2002-10-16 01:43:11 +00:00
parent 641e1c252d
commit ff5feedf28
3 changed files with 21 additions and 17 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ struct DOTGraphTraits<DSGraph*> : public DefaultDOTGraphTraits {
static int getEdgeSourceLabel(DSNode *Node, DSNode::iterator I) {
assert(Node == I.getNode() && "Iterator not for this node!");
return Node->getMergeMapLabel(I.getLink());
return Node->getMergeMapLabel(I.getOffset());
}
};