diff options
| author | David Blaikie <dblaikie@gmail.com> | 2014-10-10 03:09:38 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2014-10-10 03:09:38 +0000 |
| commit | 9ab48849ad8ee4d989c99e542078254561140420 (patch) | |
| tree | 1002b8f7a15152894211b21903fde6dccad119b1 /llvm/lib/CodeGen | |
| parent | cbcb789f9dc67032d1fb091d13dc2091bc2e4477 (diff) | |
| download | bcm5719-llvm-9ab48849ad8ee4d989c99e542078254561140420.tar.gz bcm5719-llvm-9ab48849ad8ee4d989c99e542078254561140420.zip | |
Avoid unnecessary map lookup/insertion.
llvm-svn: 219466
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
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]; |

