[Bug 47086] New: A project should not contain unreachable code.(llvm-project/lldb/source/Breakpoint/BreakpointResolverAddress.cpp:line 90)

Bug ID 47086
Summary A project should not contain unreachable code.(llvm-project/lldb/source/Breakpoint/BreakpointResolverAddress.cpp:line 90)
Product lldb
Version unspecified
Hardware All
OS All
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter info@ustchcs.com
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org

A project should not contain unreachable code.

commit e3546c78cabfbf670391a57766872f0a8e28a423 

llvm-project/lldb/source/Breakpoint/BreakpointResolverAddress.cpp:line 90

    70    if (section_sp) {
    71      ModuleSP module_sp = section_sp->GetModule();
    72      ConstString module_name;
    73      if (module_sp)
    74        module_name.SetCString(module_name.GetCString());
    75  
    76      options_dict_sp->AddStringItem(GetKey(OptionNames::ModuleName),
    77                                     module_name.GetCString());
    78      options_dict_sp->AddIntegerItem(GetKey(OptionNames::AddressOffset),
    79                                      m_addr.GetOffset());
    80    } else {
    81      options_dict_sp->AddIntegerItem(GetKey(OptionNames::AddressOffset),
    82                                      m_addr.GetOffset());
    83      if (m_module_filespec) {
    84        options_dict_sp->AddStringItem(GetKey(OptionNames::ModuleName),
    85                                       m_module_filespec.GetPath());
    86      }
    87    }
    88  
    89    return WrapOptionsDict(options_dict_sp);
    90    return StructuredData::ObjectSP();
    91  }

Reported by: Ustchcs Toolsets Bugfinder
(bugfinder-1.1: A project should not contain unreachable code.)

Raphael Isemann changed bug 47086

What Removed Added
Status NEW RESOLVED
Resolution FIXED
CC teemperor@gmail.com

Comment # 1 on bug 47086 from Raphael Isemann

Fixed in 8119d6c14695b436adb66f0d891863eeea9e62ad