From: Bill Wendling Date: Fri, 1 May 2009 08:35:12 +0000 (+0000) Subject: Simplify more code. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ff86ef33e215e833efbdb04858b716e61020cb17;p=oota-llvm.git Simplify more code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70537 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index c61a5a86af7..7afb7596106 100644 --- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -3553,15 +3553,10 @@ public: DenseMap >::iterator I = InlineInfo.find(GV); - if (I == InlineInfo.end()) { - SmallVector Labels; - Labels.push_back(LabelID); - InlineInfo[GV] = Labels; - return; - } - - SmallVector &Labels = I->second; - Labels.push_back(LabelID); + if (I == InlineInfo.end()) + InlineInfo[GV].push_back(LabelID); + else + I->second.push_back(LabelID); } /// RecordInlinedFnEnd - Indicate the end of inlined subroutine.