From 4145bd509d0be0ea2ebea693a7ad15948480d982 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 21 Mar 2008 22:51:06 +0000 Subject: [PATCH] Fix -view-sunit-dags to support cross-rc-copy nodes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48664 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index ad58aa06165..7779acce634 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -314,7 +314,10 @@ std::string DOTGraphTraits::getNodeLabel(const SUnit *SU, &G->DAG) + "\n"; } - Op += DOTGraphTraits::getNodeLabel(SU->Node, &G->DAG); + if (SU->Node) + Op += DOTGraphTraits::getNodeLabel(SU->Node, &G->DAG); + else + Op += ""; return Op; }