Skip to content

Commit be740fe

Browse files
Update lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
Co-authored-by: Jonas Devlieghere <[email protected]>
1 parent 3c69582 commit be740fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5854,8 +5854,7 @@ StructuredData::ObjectSP ObjectFileMachO::GetCorefileProcessMetadata() {
58545854
log,
58555855
"Multiple 'process metadata' LC_NOTEs found, only using the first.");
58565856

5857-
offset_t payload_offset = std::get<0>(lc_notes[0]);
5858-
offset_t strsize = std::get<1>(lc_notes[0]);
5857+
auto [payload_offset, strsize] = lc_notes[0];
58595858
std::string buf(strsize, '\0');
58605859
if (m_data.CopyData(payload_offset, strsize, buf.data()) != strsize) {
58615860
LLDB_LOGF(log,

0 commit comments

Comments
 (0)