From: Lang Hames Date: Thu, 21 Nov 2013 06:30:14 +0000 (+0000) Subject: Dereference the node iterator when dumping the PBQP graph structure in DOT X-Git-Tag: android-x86-7.1-r4~67469 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=397afeb1fb76d38efc34fd8d0e4600d5d1d9423c;p=android-x86%2Fexternal-llvm.git Dereference the node iterator when dumping the PBQP graph structure in DOT 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 --- diff --git a/include/llvm/CodeGen/PBQP/Graph.h b/include/llvm/CodeGen/PBQP/Graph.h index aca0a913034..07371439249 100644 --- a/include/llvm/CodeGen/PBQP/Graph.h +++ b/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";