[cfe-commits] r121486 - /cfe/trunk/include/clang/AST/Type.h
Douglas Gregor
dgregor at apple.com
Fri Dec 10 07:40:48 PST 2010
Author: dgregor
Date: Fri Dec 10 09:40:48 2010
New Revision: 121486
URL: http://llvm.org/viewvc/llvm-project?rev=121486&view=rev
Log:
Silence GCC warning about comparisons between enumerators of different types
Modified:
cfe/trunk/include/clang/AST/Type.h
Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=121486&r1=121485&r2=121486&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Fri Dec 10 09:40:48 2010
@@ -3464,7 +3464,7 @@
inline void QualType::removeLocalCVRQualifiers(unsigned Mask) {
assert(!(Mask & ~Qualifiers::CVRMask) && "mask has non-CVR bits");
- assert(Qualifiers::CVRMask == Qualifiers::FastMask);
+ assert((int)Qualifiers::CVRMask == (int)Qualifiers::FastMask);
// Fast path: we don't need to touch the slow qualifiers.
removeLocalFastQualifiers(Mask);
More information about the cfe-commits
mailing list