diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 62c82a397ec..b461674ad63 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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];