diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h index 20e85cce7de..15f9527abea 100644 --- a/include/llvm/Support/GraphWriter.h +++ b/include/llvm/Support/GraphWriter.h @@ -125,7 +125,7 @@ public: void writeNode(NodeType *Node) { std::string NodeAttributes = DOTTraits::getNodeAttributes(Node, G); - O << "\tNode" << reinterpret_cast(Node) << " [shape=record,"; + O << "\tNode" << static_cast(Node) << " [shape=record,"; if (!NodeAttributes.empty()) O << NodeAttributes << ","; O << "label=\"{"; @@ -199,8 +199,8 @@ public: DestPort = static_cast(Offset); } - emitEdge(reinterpret_cast(Node), edgeidx, - reinterpret_cast(TargetNode), DestPort, + emitEdge(static_cast(Node), edgeidx, + static_cast(TargetNode), DestPort, DOTTraits::getEdgeAttributes(Node, EI)); } } @@ -238,7 +238,7 @@ public: O << "\tNode" << SrcNodeID; if (SrcNodePort >= 0) O << ":s" << SrcNodePort; - O << " -> Node" << reinterpret_cast(DestNodeID); + O << " -> Node" << DestNodeID; if (DestNodePort >= 0) O << ":d" << DestNodePort;