[llvm] r195316 - Dereference the node iterator when dumping the PBQP graph structure in DOT
Lang Hames
lhames at gmail.com
Wed Nov 20 22:30:15 PST 2013
Author: lhames
Date: Thu Nov 21 00:30:14 2013
New Revision: 195316
URL: http://llvm.org/viewvc/llvm-project?rev=195316&view=rev
Log:
Dereference the node iterator when dumping the PBQP graph structure in DOT
format.
Thanks to Arnaud A. de Grandmaison for the patch!
Modified:
llvm/trunk/include/llvm/CodeGen/PBQP/Graph.h
Modified: llvm/trunk/include/llvm/CodeGen/PBQP/Graph.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/PBQP/Graph.h?rev=195316&r1=195315&r2=195316&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/PBQP/Graph.h (original)
+++ llvm/trunk/include/llvm/CodeGen/PBQP/Graph.h Thu Nov 21 00:30:14 2013
@@ -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";
More information about the llvm-commits
mailing list