summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-02-29 00:26:20 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-02-29 00:26:20 +0000
commit8e0913d4921e36ef82ecba565fd7b2c66165dd87 (patch)
tree7074b466a53fc371730ffd840109425093f742d6 /lib
parentfc399c7719e5643791564d45087fd651469aad5c (diff)
downloadclang-8e0913d4921e36ef82ecba565fd7b2c66165dd87.tar.gz
clang-8e0913d4921e36ef82ecba565fd7b2c66165dd87.tar.bz2
clang-8e0913d4921e36ef82ecba565fd7b2c66165dd87.tar.xz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Rewrite/RewriteModernObjC.cpp4
1 files changed, 2 insertions, 2 deletions
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(),