[cfe-commits] r92952 - /cfe/trunk/lib/Frontend/RewriteObjC.cpp
Fariborz Jahanian
fjahanian at apple.com
Thu Jan 7 14:15:32 PST 2010
Author: fjahanian
Date: Thu Jan 7 16:15:31 2010
New Revision: 92952
URL: http://llvm.org/viewvc/llvm-project?rev=92952&view=rev
Log:
Fixes a bug in my last patch (related to radar 7490331).
Modified:
cfe/trunk/lib/Frontend/RewriteObjC.cpp
Modified: cfe/trunk/lib/Frontend/RewriteObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/RewriteObjC.cpp?rev=92952&r1=92951&r2=92952&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/RewriteObjC.cpp (original)
+++ cfe/trunk/lib/Frontend/RewriteObjC.cpp Thu Jan 7 16:15:31 2010
@@ -1185,7 +1185,7 @@
ObjCIvarDecl *D = IV->getDecl();
const Expr *BaseExpr = IV->getBase();
if (CurMethodDef) {
- if (IV->isArrow()) {
+ if (IV->isArrow() && isa<DeclRefExpr>(BaseExpr)) {
ObjCInterfaceType *iFaceDecl =
dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType());
// lookup which class implements the instance variable.
More information about the cfe-commits
mailing list