[PATCH] D50163: [AST] Remove the static_assert check in ObjCMethodDecl::ObjCMethodDecl
Vlad Tsyrklevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 1 15:41:30 PDT 2018
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rC338648: [AST] Remove the static_assert check in ObjCMethodDecl::ObjCMethodDecl (authored by vlad.tsyrklevich, committed by ).
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.158655.patch
Type: text/x-patch
Size: 797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180801/ec3a6e07/attachment.bin>
More information about the cfe-commits
mailing list