From cf51ece8f1dc5e34338c03c1fdf7c105ebdbf7f5 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 25 Mar 2009 03:06:26 +0000 Subject: [PATCH] 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 --- lib/Driver/OptTable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.40.0