From 5b59bf2aa749b3ade8bf1a9ea8a58348460c1842 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 25 Mar 2025 00:24:37 -0700 Subject: [PATCH] [lldb] Remove redundant calls to std::unique_ptr::get (NFC) --- lldb/source/API/SBSaveCoreOptions.cpp | 2 +- .../Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lldb/source/API/SBSaveCoreOptions.cpp b/lldb/source/API/SBSaveCoreOptions.cpp index e101f6a25783c..15584abaac013 100644 --- a/lldb/source/API/SBSaveCoreOptions.cpp +++ b/lldb/source/API/SBSaveCoreOptions.cpp @@ -129,5 +129,5 @@ uint64_t SBSaveCoreOptions::GetCurrentSizeInBytes(SBError &error) { } lldb_private::SaveCoreOptions &SBSaveCoreOptions::ref() const { - return *m_opaque_up.get(); + return *m_opaque_up; } diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h index d8d519693f102..ea763b94fcc75 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h @@ -344,7 +344,7 @@ class ClangExpressionDeclMap : public ClangASTSource { /// Activate parser-specific variables void EnableParserVars() { - if (!m_parser_vars.get()) + if (!m_parser_vars) m_parser_vars = std::make_unique(); } @@ -371,7 +371,7 @@ class ClangExpressionDeclMap : public ClangASTSource { /// Activate struct variables void EnableStructVars() { - if (!m_struct_vars.get()) + if (!m_struct_vars) m_struct_vars.reset(new struct StructVars); }