Remove redundant ::get() for smart pointer. (NFC)
This commit removes redundant calls to smart pointer’s ::get() method.
https://clang.llvm.org/extra/clang-tidy/checks/readability-redundant-smartptr-get.html
llvm-svn: 353795
diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp
index 4420979..19b3d07 100644
--- a/lldb/source/Expression/IRExecutionUnit.cpp
+++ b/lldb/source/Expression/IRExecutionUnit.cpp
@@ -294,7 +294,7 @@
m_strip_underscore =
(m_execution_engine_ap->getDataLayout().getGlobalPrefix() == '_');
- if (!m_execution_engine_ap.get()) {
+ if (!m_execution_engine_ap) {
error.SetErrorToGenericError();
error.SetErrorStringWithFormat("Couldn't JIT the function: %s",
error_string.c_str());
diff --git a/lldb/source/Expression/LLVMUserExpression.cpp b/lldb/source/Expression/LLVMUserExpression.cpp
index 3b62824..9ee9c04 100644
--- a/lldb/source/Expression/LLVMUserExpression.cpp
+++ b/lldb/source/Expression/LLVMUserExpression.cpp
@@ -115,10 +115,9 @@
function_stack_bottom = m_stack_frame_bottom;
function_stack_top = m_stack_frame_top;
- IRInterpreter::Interpret(*module, *function, args,
- *m_execution_unit_sp.get(), interpreter_error,
- function_stack_bottom, function_stack_top,
- exe_ctx);
+ IRInterpreter::Interpret(*module, *function, args, *m_execution_unit_sp,
+ interpreter_error, function_stack_bottom,
+ function_stack_top, exe_ctx);
if (!interpreter_error.Success()) {
diagnostic_manager.Printf(eDiagnosticSeverityError,