[Type] Simplify operator!=. NFC.

llvm-svn: 350164
This commit is contained in:
Davide Italiano 2018-12-30 15:08:51 +00:00
parent 9470c66ced
commit e4c9120499
1 changed files with 1 additions and 2 deletions

View File

@ -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 {