aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/MemoryDependenceAnalysis.h
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2007-07-31 20:01:27 +0000
committerDavid Greene <greened@obbligato.org>2007-07-31 20:01:27 +0000
commitdf464195fe049d5ea921e2e37f4f833c2ea4e3ec (patch)
treefaa1871198effb724f6ab5c37c29510c627e6323 /include/llvm/Analysis/MemoryDependenceAnalysis.h
parent054ab94bff7827b8004465b75dfe0d539568621a (diff)
downloadexternal_llvm-df464195fe049d5ea921e2e37f4f833c2ea4e3ec.zip
external_llvm-df464195fe049d5ea921e2e37f4f833c2ea4e3ec.tar.gz
external_llvm-df464195fe049d5ea921e2e37f4f833c2ea4e3ec.tar.bz2
Fix GLIBCXX_DEBUG error owing to dereference of end iterator. There's
no guarantee that an instruction returned by getDependency exists in the maps. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/MemoryDependenceAnalysis.h')
-rw-r--r--include/llvm/Analysis/MemoryDependenceAnalysis.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h
index 8679cd9..7546eda 100644
--- a/include/llvm/Analysis/MemoryDependenceAnalysis.h
+++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h
@@ -32,9 +32,14 @@ class Instruction;
class MemoryDependenceAnalysis : public FunctionPass {
private:
-
- DenseMap<Instruction*, std::pair<Instruction*, bool> > depGraphLocal;
- std::multimap<Instruction*, Instruction*> reverseDep;
+
+ typedef DenseMap<Instruction*, std::pair<Instruction*, bool> >
+ depMapType;
+
+ depMapType depGraphLocal;
+
+ typedef std::multimap<Instruction*, Instruction*> reverseDepMapType;
+ reverseDepMapType reverseDep;
Instruction* getCallSiteDependency(CallSite C, Instruction* start,
bool local = true);