1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

fix PR4915, a crash in -debug mode.

llvm-svn: 81177
This commit is contained in:
Chris Lattner 2009-09-08 01:22:54 +00:00
parent ee1d1d3173
commit fb09f6e5ea

View File

@ -548,7 +548,9 @@ public:
o << "DFSNumbers invalid: " << SlowQueries << " slow queries.";
o << "\n";
PrintDomTree<NodeT>(getRootNode(), o, 1);
// The postdom tree can have a null root if there are no returns.
if (getRootNode())
PrintDomTree<NodeT>(getRootNode(), o, 1);
}
protected: