diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index b454cd09fb8..c61a5a86af7 100644 --- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -3545,14 +3545,11 @@ public: DenseMap >::iterator SI = DbgInlinedScopeMap.find(GV); - if (SI == DbgInlinedScopeMap.end()) { - SmallVector Scopes; - Scopes.push_back(Scope); - DbgInlinedScopeMap[GV] = Scopes; - } else { - SmallVector &Scopes = SI->second; - Scopes.push_back(Scope); - } + + if (SI == DbgInlinedScopeMap.end()) + DbgInlinedScopeMap[GV].push_back(Scope); + else + SI->second.push_back(Scope); DenseMap >::iterator I = InlineInfo.find(GV);