Dereference the node iterator when dumping the PBQP graph structure in DOT
authorLang Hames <lhames@gmail.com>
Thu, 21 Nov 2013 06:30:14 +0000 (06:30 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 21 Nov 2013 06:30:14 +0000 (06:30 +0000)
format.

Thanks to Arnaud A. de Grandmaison for the patch!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195316 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/PBQP/Graph.h

index aca0a91303426cf5b3c4c1abb6a73d83cdbf4969..07371439249f73cf56faf8b46349df3f35b08f2f 100644 (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";