diff options
| author | Eric Christopher <echristo@gmail.com> | 2013-07-14 21:46:51 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2013-07-14 21:46:51 +0000 |
| commit | 666dc635c70db6706a1c93426f8718bde7f70933 (patch) | |
| tree | 8caac04b3f5fd256598be57e5edd07caaaa77c2e /llvm | |
| parent | e9348f6df5b4b51f600d74653a0882cbd7392eb7 (diff) | |
| download | bcm5719-llvm-666dc635c70db6706a1c93426f8718bde7f70933.tar.gz bcm5719-llvm-666dc635c70db6706a1c93426f8718bde7f70933.zip | |
Collapse temporary variable into call.
llvm-svn: 186295
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 9f77b513efe..37eedc27e5a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/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); |

