Avoid unnecessary map lookup/insertion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219466 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2014-10-10 03:09:38 +00:00
parent 4728073883
commit df89f0dbaa

View File

@ -337,12 +337,12 @@ void DwarfDebug::constructAbstractSubprogramScopeDIE(LexicalScope *Scope) {
DISubprogram SP(Scope->getScopeNode());
ProcessedSPNodes.insert(SP);
DIE *&AbsDef = AbstractSPDies[SP];
if (AbsDef)
return;
ProcessedSPNodes.insert(SP);
// Find the subprogram's DwarfCompileUnit in the SPMap in case the subprogram
// was inlined from another compile unit.
DwarfCompileUnit &SPCU = *SPMap[SP];