[Lldb-commits] [lldb] 7bf066a - [nfc] [lldb] Fix harmless slicing of DWARFDIE

Jan Kratochvil via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 21 06:50:34 PDT 2020


Author: Jan Kratochvil
Date: 2020-10-21T15:49:53+02:00
New Revision: 7bf066a20f4bfd52a79ae7650632bb3925171104

URL: https://github.com/llvm/llvm-project/commit/7bf066a20f4bfd52a79ae7650632bb3925171104
DIFF: https://github.com/llvm/llvm-project/commit/7bf066a20f4bfd52a79ae7650632bb3925171104.diff

LOG: [nfc] [lldb] Fix harmless slicing of DWARFDIE

Differential Revision: https://reviews.llvm.org/D89875

Added: 
    

Modified: 
    lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
index abe16182ef62..d6009518da12 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
@@ -166,7 +166,7 @@ class DWARFUnit : public lldb_private::UserID {
 
   void SetBaseAddress(dw_addr_t base_addr);
 
-  DWARFBaseDIE GetUnitDIEOnly() { return DWARFDIE(this, GetUnitDIEPtrOnly()); }
+  DWARFBaseDIE GetUnitDIEOnly() { return {this, GetUnitDIEPtrOnly()}; }
 
   DWARFDIE DIE() { return DWARFDIE(this, DIEPtr()); }
 


        


More information about the lldb-commits mailing list