Skip to content

Commit

Permalink
[lldb] Use std::make_unique<DynamicRegisterInfo> (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
JDevlieghere committed Jul 22, 2020
1 parent eae6bb3 commit d2ec918
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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);
}
Expand Down

0 comments on commit d2ec918

Please sign in to comment.