[PATCH] D50163: [AST] Remove the static_assert check in ObjCMethodDecl::ObjCMethodDecl

Bruno Ricci via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 1 15:24:48 PDT 2018


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 =


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50163.158650.patch
Type: text/x-patch
Size: 797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180801/99b4f4a4/attachment.bin>


More information about the cfe-commits mailing list