Author: Jonas Devlieghere
Date: 2020-07-22T11:32:48-07:00
New Revision: d2ec91845c6711a2ea57ce2b0012f960f0e119f0

URL: 
https://github.com/llvm/llvm-project/commit/d2ec91845c6711a2ea57ce2b0012f960f0e119f0
DIFF: 
https://github.com/llvm/llvm-project/commit/d2ec91845c6711a2ea57ce2b0012f960f0e119f0.diff

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git 
a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp 
b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
index 417aa2e21436..4350010f0296 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);
   }


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to