aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Driver/OptTable.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-25 03:06:26 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-25 03:06:26 +0000
commit0e0cf39a9ee2aa8119d9cc60fcfde482ceffc931 (patch)
tree983837de532918910013c3707daef8c0c4c72612 /clang/lib/Driver/OptTable.cpp
parent75fdaa465f4ccbe129ad69cdc8de34587066db13 (diff)
downloadllvm-0e0cf39a9ee2aa8119d9cc60fcfde482ceffc931.zip
llvm-0e0cf39a9ee2aa8119d9cc60fcfde482ceffc931.tar.gz
llvm-0e0cf39a9ee2aa8119d9cc60fcfde482ceffc931.tar.bz2
gcc 4.3 finds my use of ^ suspicious.
llvm-svn: 67673
Diffstat (limited to 'clang/lib/Driver/OptTable.cpp')
-rw-r--r--clang/lib/Driver/OptTable.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}