summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
authorErik Pilkington <erik.pilkington@gmail.com>2019-04-11 17:55:34 +0000
committerErik Pilkington <erik.pilkington@gmail.com>2019-04-11 17:55:34 +0000
commit1138d8c8924bcf479a566133f64eb700807e6774 (patch)
tree5ad73dbe3a6aabe418496bc759e4d11ce2ea562b /clang/lib/CodeGen/CGObjCMac.cpp
parentc5a0583400b71f81faf9dedfaab094720c2ef823 (diff)
downloadbcm5719-llvm-1138d8c8924bcf479a566133f64eb700807e6774.tar.gz
bcm5719-llvm-1138d8c8924bcf479a566133f64eb700807e6774.zip
Support objc_nonlazy_class attribute on Objective-C implementations
Fixes rdar://49523079 Differential revision: https://reviews.llvm.org/D60544 llvm-svn: 358201
Diffstat (limited to 'clang/lib/CodeGen/CGObjCMac.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index 7d760bde997..ad141d61914 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/lib/CodeGen/CGObjCMac.cpp
@@ -6262,7 +6262,8 @@ CGObjCNonFragileABIMac::BuildClassObject(const ObjCInterfaceDecl *CI,
bool CGObjCNonFragileABIMac::ImplementationIsNonLazy(
const ObjCImplDecl *OD) const {
return OD->getClassMethod(GetNullarySelector("load")) != nullptr ||
- OD->getClassInterface()->hasAttr<ObjCNonLazyClassAttr>();
+ OD->getClassInterface()->hasAttr<ObjCNonLazyClassAttr>() ||
+ OD->hasAttr<ObjCNonLazyClassAttr>();
}
void CGObjCNonFragileABIMac::GetClassSizeInfo(const ObjCImplementationDecl *OID,
OpenPOWER on IntegriCloud