diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-10-31 20:55:27 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-10-31 20:55:27 +0000 |
commit | 9b181b3eec13686ac05fb2c57c3f4baf2d4074a9 (patch) | |
tree | 2beba9f968b9880728594e51bd0cbd8be223035f | |
parent | d9e9ede6b1703849da739629904dad197306e527 (diff) |
Implemented short-circuited version of Builtin::Info::operator!=.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43574 91177308-0d34-0410-b5e6-96231b3b80d8
-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 |