diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-07-22 11:32:18 -0700 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-07-22 11:32:48 -0700 |
| commit | d2ec91845c6711a2ea57ce2b0012f960f0e119f0 (patch) | |
| tree | 1ae327d6c9d4a258448ecbe868bc6cdde7c02a1e /lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp | |
| parent | eae6bb3807977a2998ac9114a1d6ecb6bdafc3cd (diff) | |
| download | llvm-d2ec91845c6711a2ea57ce2b0012f960f0e119f0.zip llvm-d2ec91845c6711a2ea57ce2b0012f960f0e119f0.tar.gz llvm-d2ec91845c6711a2ea57ce2b0012f960f0e119f0.tar.bz2 | |
[lldb] Use std::make_unique<DynamicRegisterInfo> (NFC)
Diffstat (limited to 'lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp')
| -rw-r--r-- | lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp index 417aa2e..4350010 100644 --- a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp +++ b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp @@ -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); } |
