r338648 - [AST] Remove the static_assert check in ObjCMethodDecl::ObjCMethodDecl

Vlad Tsyrklevich via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 1 15:41:03 PDT 2018


Author: vlad.tsyrklevich
Date: Wed Aug  1 15:41:03 2018
New Revision: 338648

URL: http://llvm.org/viewvc/llvm-project?rev=338648&view=rev
Log:
[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

Modified:
    cfe/trunk/lib/AST/DeclObjC.cpp

Modified: cfe/trunk/lib/AST/DeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclObjC.cpp?rev=338648&r1=338647&r2=338648&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclObjC.cpp (original)
+++ cfe/trunk/lib/AST/DeclObjC.cpp Wed Aug  1 15:41:03 2018
@@ -787,13 +787,6 @@ ObjCMethodDecl::ObjCMethodDecl(SourceLoc
     : 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 =




More information about the cfe-commits mailing list