[lldb-dev] [Bug 47086] New: A project should not contain unreachable code.(llvm-project/lldb/source/Breakpoint/BreakpointResolverAddress.cpp:line 90)
via lldb-dev
lldb-dev at lists.llvm.org
Mon Aug 10 02:27:31 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47086
Bug ID: 47086
Summary: A project should not contain unreachable
code.(llvm-project/lldb/source/Breakpoint/BreakpointRe
solverAddress.cpp:line 90)
Product: lldb
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: info at ustchcs.com
CC: jdevlieghere at apple.com, llvm-bugs at 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.)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20200810/e92a8b1f/attachment.html>
More information about the lldb-dev
mailing list