From 0e0cf39a9ee2aa8119d9cc60fcfde482ceffc931 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 25 Mar 2009 03:06:26 +0000 Subject: gcc 4.3 finds my use of ^ suspicious. llvm-svn: 67673 --- clang/lib/Driver/OptTable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Driver/OptTable.cpp') diff --git a/clang/lib/Driver/OptTable.cpp b/clang/lib/Driver/OptTable.cpp index 60364a7..4524ece 100644 --- a/clang/lib/Driver/OptTable.cpp +++ b/clang/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; } -- cgit v1.1