From e4e98a312c7675571a39d32db2b8f6216d4060f9 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338648 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/DeclObjC.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp index 86ec9727d1..b26295013a 100644 --- a/lib/AST/DeclObjC.cpp +++ b/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 = -- 2.50.1