forked from OSchip/llvm-project
Fixes a bug in my last patch (related to radar 7490331).
llvm-svn: 92952
This commit is contained in:
parent
dab2cd543f
commit
1444230c40
|
@ -1185,7 +1185,7 @@ Stmt *RewriteObjC::RewriteObjCIvarRefExpr(ObjCIvarRefExpr *IV,
|
||||||
ObjCIvarDecl *D = IV->getDecl();
|
ObjCIvarDecl *D = IV->getDecl();
|
||||||
const Expr *BaseExpr = IV->getBase();
|
const Expr *BaseExpr = IV->getBase();
|
||||||
if (CurMethodDef) {
|
if (CurMethodDef) {
|
||||||
if (IV->isArrow()) {
|
if (IV->isArrow() && isa<DeclRefExpr>(BaseExpr)) {
|
||||||
ObjCInterfaceType *iFaceDecl =
|
ObjCInterfaceType *iFaceDecl =
|
||||||
dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType());
|
dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType());
|
||||||
// lookup which class implements the instance variable.
|
// lookup which class implements the instance variable.
|
||||||
|
|
Loading…
Reference in New Issue