From 9470c66ced2ae347a025544e20962346b027b744 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Sun, 30 Dec 2018 15:07:25 +0000 Subject: [PATCH] [TypeName] Simplify operator!=. NFCI. llvm-svn: 350163 --- lldb/source/Symbol/Type.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lldb/source/Symbol/Type.cpp b/lldb/source/Symbol/Type.cpp index 5f10784..d4e94ec 100644 --- a/lldb/source/Symbol/Type.cpp +++ b/lldb/source/Symbol/Type.cpp @@ -710,11 +710,7 @@ bool TypeAndOrName::operator==(const TypeAndOrName &other) const { } bool TypeAndOrName::operator!=(const TypeAndOrName &other) const { - if (m_type_pair != other.m_type_pair) - return true; - if (m_type_name != other.m_type_name) - return true; - return false; + return !(*this == other); } ConstString TypeAndOrName::GetName() const { -- 2.7.4