[Lldb-commits] [lldb] [lldb][ObjC] Fix method list entry offset calculation (PR #115571)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 8 16:41:47 PST 2024


================
@@ -394,7 +394,7 @@ bool ClassDescriptorV2::relative_list_entry_t::Read(Process *process,
   lldb::offset_t cursor = 0;
   uint64_t raw_entry = extractor.GetU64_unchecked(&cursor);
   m_image_index = raw_entry & 0xFFFF;
-  m_list_offset = (int64_t)(raw_entry >> 16);
+  m_list_offset = llvm::SignExtend64<48>(raw_entry >> 16);
----------------
Michael137 wrote:

Just felt more explicit

https://github.com/llvm/llvm-project/pull/115571


More information about the lldb-commits mailing list