From 385cdaa3f583e600ffebc3f1035de76cd177f299 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 1 Nov 2007 16:35:25 +0000 Subject: [PATCH] Reverted unnecessary inlining of operator!=, since negating operator== is just as efficient and much more succinct. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43614 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Builtins.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/clang/AST/Builtins.h b/include/clang/AST/Builtins.h index 0648c8debd..8f808306a6 100644 --- a/include/clang/AST/Builtins.h +++ b/include/clang/AST/Builtins.h @@ -39,12 +39,7 @@ struct Info { !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 -- 2.40.0