summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Tsyrklevich <vlad@tsyrklevich.net>2018-08-01 22:41:03 +0000
committerVlad Tsyrklevich <vlad@tsyrklevich.net>2018-08-01 22:41:03 +0000
commit54d251b9010a90b2987cee6c8fc6e6aaa8602f4f (patch)
treeabdcbfd53f4704d226c4bf225240c334b700c0e2
parent5530f234f52fb9167a6cc7ebf33e96e50a44a214 (diff)
downloadbcm5719-llvm-54d251b9010a90b2987cee6c8fc6e6aaa8602f4f.tar.gz
bcm5719-llvm-54d251b9010a90b2987cee6c8fc6e6aaa8602f4f.zip
[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 llvm-svn: 338648
-rw-r--r--clang/lib/AST/DeclObjC.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp
index 86ec9727d19..b26295013ab 100644
--- a/clang/lib/AST/DeclObjC.cpp
+++ b/clang/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<unsigned>(ObjCMethodDeclBits.ObjCMethodFamilyBitWidth) ==
- static_cast<unsigned>(ObjCMethodFamilyBitWidth),
- "ObjCMethodDeclBitfields::ObjCMethodFamilyBitWidth and "
- "ObjCMethodFamilyBitWidth do not match!");
// Initialized the bits stored in DeclContext.
ObjCMethodDeclBits.Family =
OpenPOWER on IntegriCloud