Skip to content

Commit d2ec918

Browse files
committed
[lldb] Use std::make_unique<DynamicRegisterInfo> (NFC)
1 parent eae6bb3 commit d2ec918

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ DynamicRegisterInfo *OperatingSystemPython::GetDynamicRegisterInfo() {
133133
if (!dictionary)
134134
return nullptr;
135135

136-
m_register_info_up.reset(new DynamicRegisterInfo(
137-
*dictionary, m_process->GetTarget().GetArchitecture()));
136+
m_register_info_up = std::make_unique<DynamicRegisterInfo>(
137+
*dictionary, m_process->GetTarget().GetArchitecture());
138138
assert(m_register_info_up->GetNumRegisters() > 0);
139139
assert(m_register_info_up->GetNumRegisterSets() > 0);
140140
}

0 commit comments

Comments
 (0)