diff options
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/DeclCXX.cpp | 4 | ||||
| -rw-r--r-- | clang/lib/AST/StmtSerialization.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/CodeGen/CGCXX.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/AST/DeclCXX.cpp b/clang/lib/AST/DeclCXX.cpp index 3d9970d2a5c..cce824609dc 100644 --- a/clang/lib/AST/DeclCXX.cpp +++ b/clang/lib/AST/DeclCXX.cpp @@ -90,13 +90,13 @@ bool CXXRecordDecl::hasConstCopyConstructor(ASTContext &Context) const { = 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; } diff --git a/clang/lib/AST/StmtSerialization.cpp b/clang/lib/AST/StmtSerialization.cpp index aea3d99f197..e25c5cd861c 100644 --- a/clang/lib/AST/StmtSerialization.cpp +++ b/clang/lib/AST/StmtSerialization.cpp @@ -1240,7 +1240,7 @@ ObjCMessageExpr* ObjCMessageExpr::CreateImpl(Deserializer& D, ASTContext& C) { // Now read in the arguments. - if (flags & Flags == IsInstMeth) + if ((flags & Flags) == IsInstMeth) D.BatchReadOwnedPtrs(NumArgs+1, SubExprs, C); else { // Read the pointer for Cls/ClassName. The Deserializer will handle the diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp index d55d0f81bc9..fe61001709e 100644 --- a/clang/lib/CodeGen/CGCXX.cpp +++ b/clang/lib/CodeGen/CGCXX.cpp @@ -28,7 +28,7 @@ using namespace CodeGen; static void mangleDeclContextInternal(const DeclContext *D, std::string &S) { // FIXME: Should ObjcMethodDecl have the TranslationUnitDecl as its parent? - assert(!D->getParent() || isa<TranslationUnitDecl>(D->getParent()) && + assert((!D->getParent() || isa<TranslationUnitDecl>(D->getParent())) && "Only one level of decl context mangling is currently supported!"); if (const FunctionDecl* FD = dyn_cast<FunctionDecl>(D)) { |

