[CompilerType] Simplify operator!=. NFCI.
authorDavide Italiano <davide@freebsd.org>
Sat, 29 Dec 2018 05:00:33 +0000 (05:00 +0000)
committerDavide Italiano <davide@freebsd.org>
Sat, 29 Dec 2018 05:00:33 +0000 (05:00 +0000)
llvm-svn: 350148

lldb/source/Symbol/CompilerType.cpp

index 548d634..27d7d83 100644 (file)
@@ -1066,6 +1066,5 @@ bool lldb_private::operator==(const lldb_private::CompilerType &lhs,
 
 bool lldb_private::operator!=(const lldb_private::CompilerType &lhs,
                               const lldb_private::CompilerType &rhs) {
-  return lhs.GetTypeSystem() != rhs.GetTypeSystem() ||
-         lhs.GetOpaqueQualType() != rhs.GetOpaqueQualType();
+  return !(lhs == rhs);
 }