[lldb] Remove redundant calls to std::unique_ptr<T>::get (NFC) (#139395)

This commit is contained in:
Kazu Hirata
2025-05-10 11:03:09 -07:00
committed by GitHub
parent cb0f6d0029
commit d151ad650c
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -344,7 +344,7 @@ private:
/// Activate parser-specific variables
void EnableParserVars() {
if (!m_parser_vars.get())
if (!m_parser_vars)
m_parser_vars = std::make_unique<ParserVars>();
}
@@ -371,7 +371,7 @@ private:
/// Activate struct variables
void EnableStructVars() {
if (!m_struct_vars.get())
if (!m_struct_vars)
m_struct_vars.reset(new struct StructVars);
}