diff options
-rw-r--r-- | include/clang/AST/Builtins.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/clang/AST/Builtins.h b/include/clang/AST/Builtins.h index 8f808306a6..0648c8debd 100644 --- a/include/clang/AST/Builtins.h +++ b/include/clang/AST/Builtins.h @@ -39,7 +39,12 @@ struct Info { !strcmp(Type, RHS.Type) && !strcmp(Attributes, RHS.Attributes); } - bool operator!=(const Info &RHS) const { return !(*this == RHS); } + + bool operator!=(const Info &RHS) const { + return strcmp(Name, RHS.Name) || + strcmp(Type, RHS.Type) || + strcmp(Attributes, RHS.Attributes); + } }; /// Builtin::Context - This holds information about target-independent and |