OSDN Git Service

Fix -view-sunit-dags to support cross-rc-copy nodes.
authorDan Gohman <gohman@apple.com>
Fri, 21 Mar 2008 22:51:06 +0000 (22:51 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 21 Mar 2008 22:51:06 +0000 (22:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48664 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp

index ad58aa0..7779acc 100644 (file)
@@ -314,7 +314,10 @@ std::string DOTGraphTraits<ScheduleDAG*>::getNodeLabel(const SUnit *SU,
                                                       &G->DAG) + "\n";
   }
 
-  Op += DOTGraphTraits<SelectionDAG*>::getNodeLabel(SU->Node, &G->DAG);
+  if (SU->Node)
+    Op += DOTGraphTraits<SelectionDAG*>::getNodeLabel(SU->Node, &G->DAG);
+  else
+    Op += "<CROSS RC COPY>";
 
   return Op;
 }