summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorKonrad Kleine <kkleine@redhat.com>2019-09-23 14:05:51 +0000
committerKonrad Kleine <kkleine@redhat.com>2019-09-23 14:05:51 +0000
commitc45fe95e97215171aa76c3c9ef55b0984d56e7a5 (patch)
tree27b496d9826ba6ffc68be49e3642b3e490cee5fe /lldb
parent7964e8940999737176b453126aeb9632c9ac792e (diff)
downloadbcm5719-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.h3
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;
OpenPOWER on IntegriCloud