1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Fix -view-sunit-dags to support cross-rc-copy nodes.

llvm-svn: 48664
This commit is contained in:
Dan Gohman 2008-03-21 22:51:06 +00:00
parent 7dc7c09246
commit ae161c1522

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