summaryrefslogtreecommitdiff
path: root/lldb/source/Symbol/Type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Symbol/Type.cpp')
-rw-r--r--lldb/source/Symbol/Type.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Symbol/Type.cpp b/lldb/source/Symbol/Type.cpp
index d4e94ec36a2..340ef867856 100644
--- a/lldb/source/Symbol/Type.cpp
+++ b/lldb/source/Symbol/Type.cpp
@@ -867,8 +867,7 @@ bool TypeImpl::operator==(const TypeImpl &rhs) const {
}
bool TypeImpl::operator!=(const TypeImpl &rhs) const {
- return m_static_type != rhs.m_static_type ||
- m_dynamic_type != rhs.m_dynamic_type;
+ return !(*this == rhs);
}
bool TypeImpl::IsValid() const {