Author: davide Date: Sun Dec 30 07:08:51 2018 New Revision: 350164 URL: http://llvm.org/viewvc/llvm-project?rev=350164&view=rev Log: [Type] Simplify operator!=. NFC.
Modified: lldb/trunk/source/Symbol/Type.cpp Modified: lldb/trunk/source/Symbol/Type.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/Type.cpp?rev=350164&r1=350163&r2=350164&view=diff ============================================================================== --- lldb/trunk/source/Symbol/Type.cpp (original) +++ lldb/trunk/source/Symbol/Type.cpp Sun Dec 30 07:08:51 2018 @@ -867,8 +867,7 @@ bool TypeImpl::operator==(const TypeImpl } 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 { _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits