// must have pointer type, and the accessed type is the pointee.
if (OpKind == tok::arrow) {
if (BaseType->isDependentType())
+ // FIXME: This should not return a MemberExpr AST node, but a more
+ // specialized one.
return Owned(new (Context) MemberExpr(BaseExpr, true, 0,
MemberLoc, Context.DependentTy));
else if (const PointerType *PT = BaseType->getAsPointerType())
if (!PT || (getLangOptions().ObjC1 &&
!PT->getPointeeType()->isRecordType()))
+ // FIXME: This should not return a MemberExpr AST node, but a more
+ // specialized one.
return Owned(new (Context) MemberExpr(BaseExpr, false, 0,
MemberLoc, Context.DependentTy));
}