VK = Expr::getValueKindForType(GetterMethod->getResultType());
}
else {
+ // lvalue-ness of an explicit property is determined by
+ // getter type.
Diag(PRE->getLocation(), diag::err_getter_not_found)
<< PRE->getBase()->getType();
}
}
else {
- // lvalue-ness of an explicit property is determined by
- // property type.
- ObjCPropertyDecl *PDecl = PRE->getExplicitProperty();
- VK = Expr::getValueKindForType(PDecl->getType());
+ QualType ResT = PRE->getGetterResultType();
+ VK = Expr::getValueKindForType(ResT);
}
E = ImplicitCastExpr::Create(Context, T, CK_GetObjCProperty,