diff options
author | David Greene <greened@obbligato.org> | 2007-07-31 20:01:27 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2007-07-31 20:01:27 +0000 |
commit | df464195fe049d5ea921e2e37f4f833c2ea4e3ec (patch) | |
tree | faa1871198effb724f6ab5c37c29510c627e6323 /include/llvm/Analysis/MemoryDependenceAnalysis.h | |
parent | 054ab94bff7827b8004465b75dfe0d539568621a (diff) | |
download | external_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.h | 11 |
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); |