From: Eric Christopher Date: Sun, 14 Jul 2013 21:46:51 +0000 (+0000) Subject: Collapse temporary variable into call. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=010dbfdf9357f7db9dd93af35d6454919f7988f9;p=oota-llvm.git Collapse temporary variable into call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186295 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 9f77b513efe..37eedc27e5a 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -1026,10 +1026,8 @@ void CompileUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) { if (DIDescriptor(ContainingType).isCompositeType()) addDIEEntry(&Buffer, dwarf::DW_AT_containing_type, dwarf::DW_FORM_ref4, getOrCreateTypeDIE(DIType(ContainingType))); - else { - DIDescriptor Context = CTy.getContext(); - addToContextOwner(&Buffer, Context); - } + else + addToContextOwner(&Buffer, CTy.getContext()); if (CTy.isObjcClassComplete()) addFlag(&Buffer, dwarf::DW_AT_APPLE_objc_complete_type);