From 54d251b9010a90b2987cee6c8fc6e6aaa8602f4f Mon Sep 17 00:00:00 2001 From: Vlad Tsyrklevich Date: Wed, 1 Aug 2018 22:41:03 +0000 Subject: [PATCH] [AST] Remove the static_assert check in ObjCMethodDecl::ObjCMethodDecl Summary: This check was introduced by r338641 but this broke some builds. For now remove it. Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D50163 llvm-svn: 338648 --- clang/lib/AST/DeclObjC.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index 86ec9727d191..b26295013ab2 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/lib/AST/DeclObjC.cpp @@ -787,13 +787,6 @@ ObjCMethodDecl::ObjCMethodDecl(SourceLocation beginLoc, SourceLocation endLoc, : 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(ObjCMethodDeclBits.ObjCMethodFamilyBitWidth) == - static_cast(ObjCMethodFamilyBitWidth), - "ObjCMethodDeclBitfields::ObjCMethodFamilyBitWidth and " - "ObjCMethodFamilyBitWidth do not match!"); // Initialized the bits stored in DeclContext. ObjCMethodDeclBits.Family =