[Lldb-commits] [lldb] 4e924a6 - [lldb] std::move unique_ptrs, rather than calling .release. (#213525)
via lldb-commits
lldb-commits at lists.llvm.org
Sun Aug 2 04:04:23 PDT 2026
Author: Lang Hames
Date: 2026-08-02T21:04:18+10:00
New Revision: 4e924a6276ef015e1482b68371bb8229368fe5f7
URL: https://github.com/llvm/llvm-project/commit/4e924a6276ef015e1482b68371bb8229368fe5f7
DIFF: https://github.com/llvm/llvm-project/commit/4e924a6276ef015e1482b68371bb8229368fe5f7.diff
LOG: [lldb] std::move unique_ptrs, rather than calling .release. (#213525)
These .release() calls are legacy from the std::auto_ptr to
std::unique_ptr transition.
Added:
Modified:
lldb/source/Expression/IRExecutionUnit.cpp
Removed:
################################################################################
diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp
index 49edc2cdc5462..4f18a5da94e10 100644
--- a/lldb/source/Expression/IRExecutionUnit.cpp
+++ b/lldb/source/Expression/IRExecutionUnit.cpp
@@ -50,8 +50,8 @@ IRExecutionUnit::IRExecutionUnit(std::unique_ptr<llvm::LLVMContext> &context_up,
const lldb::TargetSP &target_sp,
const SymbolContext &sym_ctx,
std::vector<std::string> &cpu_features)
- : IRMemoryMap(target_sp), m_context_up(context_up.release()),
- m_module_up(module_up.release()), m_module(m_module_up.get()),
+ : IRMemoryMap(target_sp), m_context_up(std::move(context_up)),
+ m_module_up(std::move(module_up)), m_module(m_module_up.get()),
m_cpu_features(cpu_features), m_name(name), m_sym_ctx(sym_ctx),
m_did_jit(false), m_function_load_addr(LLDB_INVALID_ADDRESS),
m_function_end_load_addr(LLDB_INVALID_ADDRESS),
More information about the lldb-commits
mailing list