mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user