diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-12-18 01:15:21 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-12-18 01:15:21 +0000 |
commit | e24b22bb58e38253da0bda26da51da7663ca743b (patch) | |
tree | be91eaa27467c6200f803af337fe05981991153e /lib/Frontend/RewriteObjC.cpp | |
parent | 81a444a274109548f1aa6860736a100d290014bf (diff) |
Implemented rewriting of invocation of a block ivar.
(radar 7482224).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91652 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/RewriteObjC.cpp')
-rw-r--r-- | lib/Frontend/RewriteObjC.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Frontend/RewriteObjC.cpp b/lib/Frontend/RewriteObjC.cpp index 6f8d40f0d1..4ea081415f 100644 --- a/lib/Frontend/RewriteObjC.cpp +++ b/lib/Frontend/RewriteObjC.cpp @@ -4060,6 +4060,8 @@ Stmt *RewriteObjC::SynthesizeBlockCall(CallExpr *Exp, const Expr *BlockExp) { SourceLocation(), cast<Expr>(RHSStmt), Exp->getType()); return CondExpr; + } else if (const ObjCIvarRefExpr *IRE = dyn_cast<ObjCIvarRefExpr>(BlockExp)) { + CPT = IRE->getType()->getAs<BlockPointerType>(); } else { assert(1 && "RewriteBlockClass: Bad type"); } |