[cfe-commits] r43574 - /cfe/trunk/include/clang/AST/Builtins.h
Ted Kremenek
kremenek at apple.com
Wed Oct 31 13:55:27 PDT 2007
Author: kremenek
Date: Wed Oct 31 15:55:27 2007
New Revision: 43574
URL: http://llvm.org/viewvc/llvm-project?rev=43574&view=rev
Log:
Implemented short-circuited version of Builtin::Info::operator!=.
Modified:
cfe/trunk/include/clang/AST/Builtins.h
Modified: cfe/trunk/include/clang/AST/Builtins.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Builtins.h?rev=43574&r1=43573&r2=43574&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Builtins.h (original)
+++ cfe/trunk/include/clang/AST/Builtins.h Wed Oct 31 15:55:27 2007
@@ -39,7 +39,12 @@
!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
More information about the cfe-commits
mailing list