bricci created this revision. bricci added a project: clang. Herald added a subscriber: cfe-commits.
This check was introduced by r338641 but this broke some builds. For now remove it. Repository: rC Clang https://reviews.llvm.org/D50163 Files: lib/AST/DeclObjC.cpp Index: lib/AST/DeclObjC.cpp =================================================================== --- lib/AST/DeclObjC.cpp +++ lib/AST/DeclObjC.cpp @@ -787,13 +787,6 @@ : NamedDecl(ObjCMethod, contextDecl, beginLoc, SelInfo), DeclContext(ObjCMethod), MethodDeclType(T), ReturnTInfo(ReturnTInfo), DeclEndLoc(endLoc) { - // See the comment in ObjCMethodFamilyBitfields about - // ObjCMethodFamilyBitWidth for why we check this. - static_assert( - static_cast<unsigned>(ObjCMethodDeclBits.ObjCMethodFamilyBitWidth) == - static_cast<unsigned>(ObjCMethodFamilyBitWidth), - "ObjCMethodDeclBitfields::ObjCMethodFamilyBitWidth and " - "ObjCMethodFamilyBitWidth do not match!"); // Initialized the bits stored in DeclContext. ObjCMethodDeclBits.Family =
Index: lib/AST/DeclObjC.cpp =================================================================== --- lib/AST/DeclObjC.cpp +++ lib/AST/DeclObjC.cpp @@ -787,13 +787,6 @@ : NamedDecl(ObjCMethod, contextDecl, beginLoc, SelInfo), DeclContext(ObjCMethod), MethodDeclType(T), ReturnTInfo(ReturnTInfo), DeclEndLoc(endLoc) { - // See the comment in ObjCMethodFamilyBitfields about - // ObjCMethodFamilyBitWidth for why we check this. - static_assert( - static_cast<unsigned>(ObjCMethodDeclBits.ObjCMethodFamilyBitWidth) == - static_cast<unsigned>(ObjCMethodFamilyBitWidth), - "ObjCMethodDeclBitfields::ObjCMethodFamilyBitWidth and " - "ObjCMethodFamilyBitWidth do not match!"); // Initialized the bits stored in DeclContext. ObjCMethodDeclBits.Family =
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits