gcc 4.3 finds my use of ^ suspicious.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67673 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Driver/OptTable.cpp b/lib/Driver/OptTable.cpp
index 60364a7..4524ece 100644
--- a/lib/Driver/OptTable.cpp
+++ b/lib/Driver/OptTable.cpp
@@ -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;
}