[Lldb-commits] [lldb] r350164 - [Type] Simplify operator!=. NFC.
Davide Italiano via lldb-commits
lldb-commits at lists.llvm.org
Sun Dec 30 07:08:51 PST 2018
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 {
More information about the lldb-commits
mailing list