aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/OptTable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Driver/OptTable.cpp')
-rw-r--r--lib/Driver/OptTable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/OptTable.cpp b/lib/Driver/OptTable.cpp
index 60364a7822..4524ecedd4 100644
--- a/lib/Driver/OptTable.cpp
+++ b/lib/Driver/OptTable.cpp
@@ -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;
}