From: Fariborz Jahanian Date: Wed, 29 Feb 2012 00:26:20 +0000 (+0000) Subject: objective-c modern translator. Fixes misc. bug in writing X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e0913d4921e36ef82ecba565fd7b2c66165dd87;p=clang objective-c modern translator. Fixes misc. bug in writing the ivar offset symbol. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151683 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Rewrite/RewriteModernObjC.cpp b/lib/Rewrite/RewriteModernObjC.cpp index db1f5ff471..41aaafaaa3 100644 --- a/lib/Rewrite/RewriteModernObjC.cpp +++ b/lib/Rewrite/RewriteModernObjC.cpp @@ -6533,14 +6533,14 @@ Stmt *RewriteModernObjC::RewriteObjCIvarRefExpr(ObjCIvarRefExpr *IV) { SourceLocation(), addExpr); QualType IvarT = D->getType(); - convertBlockPointerToFunctionPointer(IvarT); + convertObjCTypeToCStyleType(IvarT); QualType castT = Context->getPointerType(IvarT); castExpr = NoTypeInfoCStyleCastExpr(Context, castT, CK_BitCast, PE); - Expr *Exp = new (Context) UnaryOperator(castExpr, UO_Deref, castT, + Expr *Exp = new (Context) UnaryOperator(castExpr, UO_Deref, IvarT, VK_LValue, OK_Ordinary, SourceLocation()); PE = new (Context) ParenExpr(OldRange.getBegin(),