[lldb] Use std::make_unique<DynamicRegisterInfo> (NFC)

This commit is contained in:
Jonas Devlieghere
2020-07-22 11:32:18 -07:00
parent eae6bb3807
commit d2ec91845c

View File

@@ -133,8 +133,8 @@ DynamicRegisterInfo *OperatingSystemPython::GetDynamicRegisterInfo() {
if (!dictionary)
return nullptr;
m_register_info_up.reset(new DynamicRegisterInfo(
*dictionary, m_process->GetTarget().GetArchitecture()));
m_register_info_up = std::make_unique<DynamicRegisterInfo>(
*dictionary, m_process->GetTarget().GetArchitecture());
assert(m_register_info_up->GetNumRegisters() > 0);
assert(m_register_info_up->GetNumRegisterSets() > 0);
}