The second element of the iterator is really an offset, not a link
llvm-svn: 4196
diff --git a/llvm/lib/Analysis/DataStructure/Printer.cpp b/llvm/lib/Analysis/DataStructure/Printer.cpp
index 87ba971..d8e755b 100644
--- a/llvm/lib/Analysis/DataStructure/Printer.cpp
+++ b/llvm/lib/Analysis/DataStructure/Printer.cpp
@@ -192,7 +192,7 @@
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());
}
};