[Lldb-commits] [PATCH] D89875: [nfc] [lldb] Fix harmless slicing of DWARFDIE
Jan Kratochvil via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 21 05:54:48 PDT 2020
jankratochvil created this revision.
jankratochvil added a reviewer: labath.
jankratochvil added a project: LLDB.
Herald added subscribers: JDevlieghere, kristof.beyls.
jankratochvil requested review of this revision.
Is `return {...};` implicit ctor OK for LLDB? I have found only one line (`return {sdk};`) in rG5935227e11f5 <https://reviews.llvm.org/rG5935227e11f5b8e7111ee4a076c10a62d0648689> using that syntax and I would normally use it everywhere.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D89875
Files:
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
Index: lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
===================================================================
--- lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
+++ lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
@@ -166,7 +166,7 @@
void SetBaseAddress(dw_addr_t base_addr);
- DWARFBaseDIE GetUnitDIEOnly() { return DWARFDIE(this, GetUnitDIEPtrOnly()); }
+ DWARFBaseDIE GetUnitDIEOnly() { return {this, GetUnitDIEPtrOnly()}; }
DWARFDIE DIE() { return DWARFDIE(this, DIEPtr()); }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89875.299653.patch
Type: text/x-patch
Size: 512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20201021/3b32474b/attachment.bin>
More information about the lldb-commits
mailing list