Someone should double-check that I didn't somehow break ObjC
serialization; I think the change there actually changes the semantics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61098
91177308-0d34-0410-b5e6-
96231b3b80d8
= 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;
}
// 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
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)) {