[cfe-commits] r67673 - /cfe/trunk/lib/Driver/OptTable.cpp

Daniel Dunbar daniel at zuster.org
Tue Mar 24 20:06:26 PDT 2009


Author: ddunbar
Date: Tue Mar 24 22:06:26 2009
New Revision: 67673

URL: http://llvm.org/viewvc/llvm-project?rev=67673&view=rev
Log:
gcc 4.3 finds my use of ^ suspicious.

Modified:
    cfe/trunk/lib/Driver/OptTable.cpp

Modified: cfe/trunk/lib/Driver/OptTable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/OptTable.cpp?rev=67673&r1=67672&r2=67673&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/OptTable.cpp (original)
+++ cfe/trunk/lib/Driver/OptTable.cpp Tue Mar 24 22:06:26 2009
@@ -63,7 +63,7 @@
 
   // 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;
 }





More information about the cfe-commits mailing list