aboutsummaryrefslogtreecommitdiff
path: root/lib/Rewrite/RewriteObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-04-08 23:48:29 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-04-08 23:48:29 +0000
commit36178092294301d26b8c77f755dae9489a9a722c (patch)
treea3e510591bdd368636d22ac3b69fc5501149b186 /lib/Rewrite/RewriteObjC.cpp
parentec7346077c1fb423c9279771675c098bc2dffc92 (diff)
Fixes a rewrting bug of a property-dot syntax expression inside
a block. First part of // rdar://9254348 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129171 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Rewrite/RewriteObjC.cpp')
-rw-r--r--lib/Rewrite/RewriteObjC.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Rewrite/RewriteObjC.cpp b/lib/Rewrite/RewriteObjC.cpp
index 13cd671f12..298ed9a906 100644
--- a/lib/Rewrite/RewriteObjC.cpp
+++ b/lib/Rewrite/RewriteObjC.cpp
@@ -5558,6 +5558,7 @@ Stmt *RewriteObjC::RewriteFunctionBodyOrGlobalInitializer(Stmt *S) {
// Rewrite the block body in place.
Stmt *SaveCurrentBody = CurrentBody;
CurrentBody = BE->getBody();
+ CollectPropertySetters(CurrentBody);
PropParentMap = 0;
RewriteFunctionBodyOrGlobalInitializer(BE->getBody());
CurrentBody = SaveCurrentBody;