summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 62c82a397ec..b461674ad63 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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];
OpenPOWER on IntegriCloud