]> granicus.if.org Git - clang/commitdiff
gcc 4.3 finds my use of ^ suspicious.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 25 Mar 2009 03:06:26 +0000 (03:06 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 25 Mar 2009 03:06:26 +0000 (03:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67673 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/OptTable.cpp

index 60364a7822639e5c373c5764435de8462b862fdc..4524ecedd4c7c5916f1e27d7074692000745590f 100644 (file)
@@ -63,7 +63,7 @@ static inline bool operator<(const Info &A, const Info &B) {
 
   // Names are the same, check that classes are in order; exactly one
   // should be joined, and it should succeed the other.
-  assert((A.Kind == Option::JoinedClass ^ B.Kind == Option::JoinedClass) &&
+  assert(((A.Kind == Option::JoinedClass) ^ (B.Kind == Option::JoinedClass)) &&
          "Unexpected classes for options with same name.");
   return B.Kind == Option::JoinedClass;
 }