Fix some crashes noted by John Mellor-Crummey's group.
authorChris Lattner <sabre@nondot.org>
Fri, 11 Mar 2005 00:00:56 +0000 (00:00 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 11 Mar 2005 00:00:56 +0000 (00:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20558 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DataStructure/EquivClassGraphs.h

index e696d3d3d46faa1601458c60bbceb668522b51b2..712c55f280ef428519f4ff7ef207f56ef62a8e25 100644 (file)
@@ -71,6 +71,12 @@ namespace PA {
       return *I->second;
     }
 
+    /// ContainsDSGraphFor - Return true if we have a graph for the specified
+    /// function.
+    bool ContainsDSGraphFor(const Function &F) const {
+      return DSInfo.find(&F) != DSInfo.end();
+    }
+
     /// getSomeCalleeForCallSite - Return any one callee function at
     /// a call site.
     ///