From: Chris Lattner Date: Wed, 12 Nov 2003 04:57:58 +0000 (+0000) Subject: Don't crash if no gg X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9dc4185763ee8786e16e6620d3228bfffc80b1cb;p=oota-llvm.git Don't crash if no gg git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9913 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index 9cf77ae1229..9d9813cd7cb 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -1409,7 +1409,7 @@ static bool CallSiteUsesAliveArgs(DSCallSite &CS, hash_set &Alive, // inlining graphs. // 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 // merging...