mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-19 19:31:50 +00:00
Use find instead of operator[] to test whether an element is in a std::map.
This fixes a bug that caused -debug-pass=Details to abort. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74654 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aa3943bf63
commit
82c32c4272
@ -278,8 +278,10 @@ public:
|
||||
for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) {
|
||||
ModulePass *MP = getContainedPass(Index);
|
||||
MP->dumpPassStructure(Offset + 1);
|
||||
if (FunctionPassManagerImpl *FPP = OnTheFlyManagers[MP])
|
||||
FPP->dumpPassStructure(Offset + 2);
|
||||
std::map<Pass *, FunctionPassManagerImpl *>::const_iterator I =
|
||||
OnTheFlyManagers.find(MP);
|
||||
if (I != OnTheFlyManagers.end())
|
||||
I->second->dumpPassStructure(Offset + 2);
|
||||
dumpLastUses(MP, Offset+1);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user