]> granicus.if.org Git - clang/commitdiff
[AST] Remove the static_assert check in ObjCMethodDecl::ObjCMethodDecl
authorVlad Tsyrklevich <vlad@tsyrklevich.net>
Wed, 1 Aug 2018 22:41:03 +0000 (22:41 +0000)
committerVlad Tsyrklevich <vlad@tsyrklevich.net>
Wed, 1 Aug 2018 22:41:03 +0000 (22:41 +0000)
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

index 86ec9727d191947e2b24ca73cb1e0c83bb2799da..b26295013ab2992a7c49b1c0edce7c02ef9c83ea 100644 (file)
@@ -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<unsigned>(ObjCMethodDeclBits.ObjCMethodFamilyBitWidth) ==
-          static_cast<unsigned>(ObjCMethodFamilyBitWidth),
-      "ObjCMethodDeclBitfields::ObjCMethodFamilyBitWidth and "
-      "ObjCMethodFamilyBitWidth do not match!");
 
   // Initialized the bits stored in DeclContext.
   ObjCMethodDeclBits.Family =