forked from OSchip/llvm-project
Fix another fallout from defining __weak unconditionally.
llvm-svn: 68834
This commit is contained in:
parent
8c920c9220
commit
60331be08d
|
@ -1840,7 +1840,8 @@ Sema::DeclPtrTy Sema::ActOnPropertyImplDecl(SourceLocation AtLoc,
|
||||||
return DeclPtrTy();
|
return DeclPtrTy();
|
||||||
}
|
}
|
||||||
if ((Context.isObjCObjectPointerType(property->getType()) ||
|
if ((Context.isObjCObjectPointerType(property->getType()) ||
|
||||||
PropType.isObjCGCStrong()) && IvarType.isObjCGCWeak()) {
|
PropType.isObjCGCStrong()) && IvarType.isObjCGCWeak() &&
|
||||||
|
getLangOptions().getGCMode() != LangOptions::NonGC) {
|
||||||
Diag(PropertyLoc, diag::error_strong_property)
|
Diag(PropertyLoc, diag::error_strong_property)
|
||||||
<< property->getDeclName() << Ivar->getDeclName();
|
<< property->getDeclName() << Ivar->getDeclName();
|
||||||
return DeclPtrTy();
|
return DeclPtrTy();
|
||||||
|
|
|
@ -12,3 +12,17 @@
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
||||||
|
@interface PVSelectionOverlayView2
|
||||||
|
{
|
||||||
|
id __weak _selectionRect;
|
||||||
|
}
|
||||||
|
|
||||||
|
@property(assign) id selectionRect;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation PVSelectionOverlayView2
|
||||||
|
|
||||||
|
@synthesize selectionRect = _selectionRect;
|
||||||
|
@end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue