1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00

Avoid unnecessary map lookup/insertion.

llvm-svn: 219466
This commit is contained in:
David Blaikie 2014-10-10 03:09:38 +00:00
parent 89a98cd287
commit ece83cd7c3

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];