From ef956fc784dc43ba58c8d68df64c9f68e662a22e Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 1 May 2009 08:32:14 +0000 Subject: [PATCH] Simplify some code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70534 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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);