Warning fixes to operator precedence warnings.
Someone should double-check that I didn't somehow break ObjC
serialization; I think the change there actually changes the semantics.
llvm-svn: 61098
diff --git a/clang/lib/AST/DeclCXX.cpp b/clang/lib/AST/DeclCXX.cpp
index 3d9970d..cce8246 100644
--- a/clang/lib/AST/DeclCXX.cpp
+++ b/clang/lib/AST/DeclCXX.cpp
@@ -90,13 +90,13 @@
= Constructors->function_begin();
Con != Constructors->function_end(); ++Con) {
if (cast<CXXConstructorDecl>(*Con)->isCopyConstructor(Context, TypeQuals) &&
- (TypeQuals & QualType::Const != 0))
+ (TypeQuals & QualType::Const) != 0)
return true;
}
} else if (CXXConstructorDecl *Constructor
= dyn_cast<CXXConstructorDecl>(*Lookup.first)) {
return Constructor->isCopyConstructor(Context, TypeQuals) &&
- (TypeQuals & QualType::Const != 0);
+ (TypeQuals & QualType::Const) != 0;
}
return false;
}