objective-c modern translator. Fixes misc. bug in writing

the ivar offset symbol.

llvm-svn: 151683
This commit is contained in:
Fariborz Jahanian 2012-02-29 00:26:20 +00:00
parent 0b4b32433c
commit 1dc712f7cc
1 changed files with 2 additions and 2 deletions

View File

@ -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(),