aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/RewriteObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-02-05 17:48:10 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-02-05 17:48:10 +0000
commit376338a68d467f076c2ae5fa614ec0286ea74d7c (patch)
tree57f9653b5e4e89ee23fdce1de0ff1ece7b0645b1 /lib/Frontend/RewriteObjC.cpp
parent88906cddbb1d5b3a868eeeec6cb170befc829c2f (diff)
Fixes a minor rewriter bug messaging inside a function call.
Fixes radar 7617047. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/RewriteObjC.cpp')
-rw-r--r--lib/Frontend/RewriteObjC.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Frontend/RewriteObjC.cpp b/lib/Frontend/RewriteObjC.cpp
index dcd83c61bf..b90babda5c 100644
--- a/lib/Frontend/RewriteObjC.cpp
+++ b/lib/Frontend/RewriteObjC.cpp
@@ -1310,7 +1310,11 @@ Stmt *RewriteObjC::RewriteObjCNestedIvarRefExpr(Stmt *S, bool &replaced) {
Stmt *newStmt = RewriteObjCIvarRefExpr(IvarRefExpr, OrigStmtRange.getBegin(),
replaced);
return newStmt;
- }
+ }
+ if (ObjCMessageExpr *MsgRefExpr = dyn_cast<ObjCMessageExpr>(S)) {
+ Stmt *newStmt = SynthMessageExpr(MsgRefExpr);
+ return newStmt;
+ }
return S;
}