Skip to content

Commit 414ed0a

Browse files
authored
Merge pull request #9570 from swiftlang/method-list-offset-6.0
[lldb][ObjC] Fix method list entry offset calculation (llvm#115571)
2 parents 81a2745 + 61c1101 commit 414ed0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ bool ClassDescriptorV2::relative_list_entry_t::Read(Process *process,
394394
lldb::offset_t cursor = 0;
395395
uint64_t raw_entry = extractor.GetU64_unchecked(&cursor);
396396
m_image_index = raw_entry & 0xFFFF;
397-
m_list_offset = (int64_t)(raw_entry >> 16);
397+
m_list_offset = llvm::SignExtend64<48>(raw_entry >> 16);
398398
return true;
399399
}
400400

0 commit comments

Comments
 (0)