just as efficient and much more succinct.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43614
91177308-0d34-0410-b5e6-
96231b3b80d8
!strcmp(Type, RHS.Type) &&
!strcmp(Attributes, RHS.Attributes);
}
-
- bool operator!=(const Info &RHS) const {
- return strcmp(Name, RHS.Name) ||
- strcmp(Type, RHS.Type) ||
- strcmp(Attributes, RHS.Attributes);
- }
+ bool operator!=(const Info &RHS) const { return !(*this == RHS); }
};
/// Builtin::Context - This holds information about target-independent and