зеркало из https://github.com/microsoft/clang.git
Fix a crash during meta-data generation of objc2's nonfragile abi.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67402 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
57e8b05fe9
Коммит
ebf9ed3193
|
@ -4193,7 +4193,10 @@ void CGObjCNonFragileABIMac::GenerateClass(const ObjCImplementationDecl *ID) {
|
|||
ID->getClassInterface()->getSuperClass()->getNameAsString();
|
||||
SuperClassGV = GetClassGlobal(ObjCClassName + RootClassName);
|
||||
}
|
||||
|
||||
// FIXME: Gross
|
||||
ObjCInterfaceDecl *Interface =
|
||||
const_cast<ObjCInterfaceDecl*>(ID->getClassInterface());
|
||||
CGM.getTypes().ConvertType(CGM.getContext().buildObjCInterfaceType(Interface));
|
||||
InstanceStart = InstanceSize = 0;
|
||||
if (ObjCInterfaceDecl *OID =
|
||||
const_cast<ObjCInterfaceDecl*>(ID->getClassInterface())) {
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
// RUN: clang -triple x86_64-unknown-unknown -emit-llvm -o %t %s
|
||||
|
||||
@interface BASE {
|
||||
@private
|
||||
void* _reserved;
|
||||
}
|
||||
@end
|
||||
|
||||
@class PVR;
|
||||
|
||||
@interface PVRHandldler
|
||||
{
|
||||
PVR *_imageBrowser;
|
||||
}
|
||||
@end
|
||||
|
||||
@implementation PVRHandldler @end
|
||||
|
||||
|
||||
@interface PVR : BASE
|
||||
@end
|
||||
|
||||
@implementation PVR
|
||||
@end
|
Загрузка…
Ссылка в новой задаче