parent
3a2d6a3096
commit
21ad7e5243
|
@ -2364,10 +2364,9 @@ Sema::LookupInObjCMethod(LookupResult &Lookup, Scope *S,
|
||||||
!IvarBacksCurrentMethodAccessor(IFace, CurMethod, IV))
|
!IvarBacksCurrentMethodAccessor(IFace, CurMethod, IV))
|
||||||
Diag(Loc, diag::warn_direct_ivar_access) << IV->getDeclName();
|
Diag(Loc, diag::warn_direct_ivar_access) << IV->getDeclName();
|
||||||
|
|
||||||
ObjCIvarRefExpr *Result = new (Context) ObjCIvarRefExpr(IV, IV->getType(),
|
ObjCIvarRefExpr *Result = new (Context)
|
||||||
Loc, IV->getLocation(),
|
ObjCIvarRefExpr(IV, IV->getType(), Loc, IV->getLocation(),
|
||||||
SelfExpr.get(),
|
SelfExpr.get(), true, true);
|
||||||
true, true);
|
|
||||||
|
|
||||||
if (getLangOpts().ObjCAutoRefCount) {
|
if (getLangOpts().ObjCAutoRefCount) {
|
||||||
if (IV->getType().getObjCLifetime() == Qualifiers::OCL_Weak) {
|
if (IV->getType().getObjCLifetime() == Qualifiers::OCL_Weak) {
|
||||||
|
|
Loading…
Reference in New Issue