Don't crash if no gg

llvm-svn: 9913
This commit is contained in:
Chris Lattner 2003-11-12 04:57:58 +00:00
parent a723537540
commit 12c71c00ef
1 changed files with 1 additions and 1 deletions

View File

@ -1409,7 +1409,7 @@ static bool CallSiteUsesAliveArgs(DSCallSite &CS, hash_set<DSNode*> &Alive,
// inlining graphs. // inlining graphs.
// //
void DSGraph::removeDeadNodes(unsigned Flags) { void DSGraph::removeDeadNodes(unsigned Flags) {
DEBUG(AssertGraphOK(); GlobalsGraph->AssertGraphOK()); DEBUG(AssertGraphOK(); if (GlobalsGraph) GlobalsGraph->AssertGraphOK());
// Reduce the amount of work we have to do... remove dummy nodes left over by // Reduce the amount of work we have to do... remove dummy nodes left over by
// merging... // merging...