diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-25 03:06:26 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-25 03:06:26 +0000 |
commit | cf51ece8f1dc5e34338c03c1fdf7c105ebdbf7f5 (patch) | |
tree | e44def8d26b3ed02aaca585eec202a7871fcc8ef /lib/Driver/OptTable.cpp | |
parent | a7b3521ef52d983bd0e7fa562bb9ef1393f14634 (diff) |
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
Diffstat (limited to 'lib/Driver/OptTable.cpp')
-rw-r--r-- | lib/Driver/OptTable.cpp | 2 |
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; } |