From f9632cee30b788df7a6241d7802224d8f633973a Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 19 Oct 2023 11:58:09 -0700 Subject: [lldb] Remove FileSpecList::GetFileSpecPointerAtIndex (NFC) There's only one use and it eventually converts the pointer into a reference. Simplify things and always use references. --- lldb/source/Commands/CommandObjectBreakpoint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp') diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp index 327dae4..18cbb95 100644 --- a/lldb/source/Commands/CommandObjectBreakpoint.cpp +++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp @@ -603,8 +603,8 @@ protected: // will track the load location of the library. size_t num_modules_specified = m_options.m_modules.GetSize(); if (num_modules_specified == 1) { - const FileSpec *file_spec = - m_options.m_modules.GetFileSpecPointerAtIndex(0); + const FileSpec &file_spec = + m_options.m_modules.GetFileSpecAtIndex(0); bp_sp = target.CreateAddressInModuleBreakpoint( m_options.m_load_addr, internal, file_spec, m_options.m_hardware); } else if (num_modules_specified == 0) { -- cgit v1.1