mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-28 21:21:43 +00:00
[lldb] Use std::make_unique<DynamicRegisterInfo> (NFC)
This commit is contained in:
1 parent
eae6bb3807
commit
d2ec91845c
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user