OSDN Git Service

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 aca0a91..0737143 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";