Don't crash if no gg
authorChris Lattner <sabre@nondot.org>
Wed, 12 Nov 2003 04:57:58 +0000 (04:57 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 12 Nov 2003 04:57:58 +0000 (04:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9913 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/DataStructure.cpp

index 9cf77ae1229cead4c3debbeb91643244cc918835..9d9813cd7cbbede340e0696e8f946bdf328a6d85 100644 (file)
@@ -1409,7 +1409,7 @@ static bool CallSiteUsesAliveArgs(DSCallSite &CS, hash_set<DSNode*> &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...