blocks: Support capturing complex variable in block.

// rdar://10033896

llvm-svn: 139041
This commit is contained in:
Fariborz Jahanian
2011-09-02 21:33:44 +00:00
parent a216debb37
commit 2bb8270e6f
2 changed files with 21 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ public:
// l-values.
ComplexPairTy VisitDeclRefExpr(const Expr *E) { return EmitLoadOfLValue(E); }
ComplexPairTy VisitBlockDeclRefExpr(const Expr *E) { return EmitLoadOfLValue(E); }
ComplexPairTy VisitObjCIvarRefExpr(ObjCIvarRefExpr *E) {
return EmitLoadOfLValue(E);
}