expression enterring IsConstProperty function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154406
91177308-0d34-0410-b5e6-
96231b3b80d8
static bool IsConstProperty(Expr *E, Sema &S) {
const ObjCPropertyRefExpr *PropExpr = dyn_cast<ObjCPropertyRefExpr>(E);
if (!PropExpr) return false;
+
+ assert(!S.Context.hasSameType(PropExpr->getType(),
+ S.Context.PseudoObjectTy)
+ && "property expression cannot be a pseudo object");
+
if (PropExpr->isImplicitProperty()) return false;
ObjCPropertyDecl *PDecl = PropExpr->getExplicitProperty();