diff options
author | Konrad Kleine <kkleine@redhat.com> | 2019-09-23 14:05:51 +0000 |
---|---|---|
committer | Konrad Kleine <kkleine@redhat.com> | 2019-09-23 14:05:51 +0000 |
commit | c45fe95e97215171aa76c3c9ef55b0984d56e7a5 (patch) | |
tree | 27b496d9826ba6ffc68be49e3642b3e490cee5fe /lldb | |
parent | 7964e8940999737176b453126aeb9632c9ac792e (diff) | |
download | bcm5719-llvm-c45fe95e97215171aa76c3c9ef55b0984d56e7a5.tar.gz bcm5719-llvm-c45fe95e97215171aa76c3c9ef55b0984d56e7a5.zip |
[LLDB] Fix logically dead code
Summary:
The indicated dead code may have performed some action; that action will never occur.
In lldb_private::LoadedModuleInfoList::LoadedModuleInfo::operator ==(lldb_private::LoadedModuleInfoList::LoadedModuleInfo const &): Code can never be reached because of a logical contradiction (CWE-561)
Coverity Scan: https://scan.coverity.com/projects/kwk-llvm-project?tab=overview
CID 221581
Subscribers: lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D67915
llvm-svn: 372608
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/include/lldb/Core/LoadedModuleInfoList.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lldb/include/lldb/Core/LoadedModuleInfoList.h b/lldb/include/lldb/Core/LoadedModuleInfoList.h index f7f83604fc1..04e58fcdf31 100644 --- a/lldb/include/lldb/Core/LoadedModuleInfoList.h +++ b/lldb/include/lldb/Core/LoadedModuleInfoList.h @@ -84,9 +84,6 @@ public: } bool operator==(LoadedModuleInfo const &rhs) const { - if (e_num != rhs.e_num) - return false; - for (size_t i = 0; i < e_num; ++i) { if (m_has[i] != rhs.m_has[i]) return false; |