From fd949a28c30690124a5e038fb61d40f487f3f5a6 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Thu, 21 Nov 2013 06:30:14 +0000 Subject: [PATCH] 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 --- llvm/include/llvm/CodeGen/PBQP/Graph.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/CodeGen/PBQP/Graph.h b/llvm/include/llvm/CodeGen/PBQP/Graph.h index aca0a9130342..07371439249f 100644 --- a/llvm/include/llvm/CodeGen/PBQP/Graph.h +++ b/llvm/include/llvm/CodeGen/PBQP/Graph.h @@ -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";