From 8694c076c70e11b0bd0769e1f60c3fd7ae8e0243 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 11 Mar 2005 00:00:56 +0000 Subject: [PATCH] Fix some crashes noted by John Mellor-Crummey's group. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20558 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/DataStructure/EquivClassGraphs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/llvm/Analysis/DataStructure/EquivClassGraphs.h b/include/llvm/Analysis/DataStructure/EquivClassGraphs.h index e696d3d3d46..712c55f280e 100644 --- a/include/llvm/Analysis/DataStructure/EquivClassGraphs.h +++ b/include/llvm/Analysis/DataStructure/EquivClassGraphs.h @@ -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. /// -- 2.34.1