aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-11 00:00:56 +0000
committerChris Lattner <sabre@nondot.org>2005-03-11 00:00:56 +0000
commit8694c076c70e11b0bd0769e1f60c3fd7ae8e0243 (patch)
tree3ac8cc71dbb056e090f86473a11743694504ea6d
parentf75c4b444ba5385230d6ff05464052882339863c (diff)
downloadexternal_llvm-8694c076c70e11b0bd0769e1f60c3fd7ae8e0243.zip
external_llvm-8694c076c70e11b0bd0769e1f60c3fd7ae8e0243.tar.gz
external_llvm-8694c076c70e11b0bd0769e1f60c3fd7ae8e0243.tar.bz2
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
-rw-r--r--include/llvm/Analysis/DataStructure/EquivClassGraphs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DataStructure/EquivClassGraphs.h b/include/llvm/Analysis/DataStructure/EquivClassGraphs.h
index e696d3d..712c55f 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.
///