From 4f304dc353e0ec9c4499af3fe29b7fe4a6d90d26 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Sun, 30 Dec 2018 15:08:51 +0000 Subject: [Type] Simplify operator!=. NFC. --- lldb/source/Symbol/Type.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lldb') 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 { -- cgit v1.2.3