Dereference the node iterator when dumping the PBQP graph structure in DOT

format.

Thanks to Arnaud A. de Grandmaison for the patch!

llvm-svn: 195316
This commit is contained in:
Lang Hames 2013-11-21 06:30:14 +00:00
parent 2fc05be887
commit fd949a28c3
1 changed files with 2 additions and 2 deletions

View File

@ -437,8 +437,8 @@ namespace PBQP {
for (NodeItr nodeItr = nodesBegin(), nodeEnd = nodesEnd();
nodeItr != nodeEnd; ++nodeItr) {
os << " node" << nodeItr << " [ label=\""
<< nodeItr << ": " << getNodeCosts(*nodeItr) << "\" ]\n";
os << " node" << *nodeItr << " [ label=\""
<< *nodeItr << ": " << getNodeCosts(*nodeItr) << "\" ]\n";
}
os << " edge [ len=" << getNumNodes() << " ]\n";