diff options
author | John McCall <rjmccall@apple.com> | 2013-02-19 01:57:29 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2013-02-19 01:57:29 +0000 |
commit | a496098bb8bdbd9889e23bf1363ca28376ed7113 (patch) | |
tree | 5e997d7bc0499b14bb4045fdc2c7e5bb97badeb8 /clang/lib/CodeGen | |
parent | eac4a48d23c4cc396107f504c0944662328eec58 (diff) | |
download | bcm5719-llvm-a496098bb8bdbd9889e23bf1363ca28376ed7113.tar.gz bcm5719-llvm-a496098bb8bdbd9889e23bf1363ca28376ed7113.zip |
Use the actual class visibility for the ObjC EHTYPE global,
not the global visibility mode.
Noticed by inspection.
llvm-svn: 175479
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGObjCMac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index b6617a0557b..bea30a13673 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/lib/CodeGen/CGObjCMac.cpp @@ -7054,7 +7054,7 @@ CGObjCNonFragileABIMac::GetInterfaceEHType(const ObjCInterfaceDecl *ID, ID->getIdentifier()->getName())); } - if (CGM.getLangOpts().getVisibilityMode() == HiddenVisibility) + if (ID->getVisibility() == HiddenVisibility) Entry->setVisibility(llvm::GlobalValue::HiddenVisibility); Entry->setAlignment(CGM.getDataLayout().getABITypeAlignment( ObjCTypes.EHTypeTy)); |