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
This commit is contained in:
Dan Gohman 2008-03-21 22:51:06 +00:00
parent 8e0c20bf1b
commit 4145bd509d

View 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;
}