================ @@ -1606,66 +1559,60 @@ SBSymbolContextList SBTarget::FindCompileUnits(const SBFileSpec &sb_file_spec) { LLDB_INSTRUMENT_VA(this, sb_file_spec); SBSymbolContextList sb_sc_list; - const TargetSP target_sp(GetSP()); - if (target_sp && sb_file_spec.IsValid()) - target_sp->GetImages().FindCompileUnits(*sb_file_spec, *sb_sc_list); + if (TargetSP target_sp = GetSP()) { ---------------- labath wrote:
and here https://github.com/llvm/llvm-project/pull/141284 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits