commit | d0627015cec0b75f7044b7aef28f6e802e0f4648 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Fri Mar 21 22:51:06 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Fri Mar 21 22:51:06 2008 +0000 |
tree | 209921b5b4edf21722791cc7648c33f241a94ac1 | |
parent | b89b6a38f73206ab4694082e7e810ee2f8fe849f [diff] |
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
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index ad58aa0..7779acc 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@ -314,7 +314,10 @@ &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; }