[cfe-commits] r128726 - in /cfe/trunk: lib/Rewrite/RewriteObjC.cpp test/Rewriter/rewrite-block-pointer.mm
Fariborz Jahanian
fjahanian at apple.com
Fri Apr 1 12:19:28 PDT 2011
Author: fjahanian
Date: Fri Apr 1 14:19:28 2011
New Revision: 128726
URL: http://llvm.org/viewvc/llvm-project?rev=128726&view=rev
Log:
ANother rewrite bug, rewriting a call of
__byref block. // rdar://9204669
Modified:
cfe/trunk/lib/Rewrite/RewriteObjC.cpp
cfe/trunk/test/Rewriter/rewrite-block-pointer.mm
Modified: cfe/trunk/lib/Rewrite/RewriteObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/RewriteObjC.cpp?rev=128726&r1=128725&r2=128726&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/RewriteObjC.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteObjC.cpp Fri Apr 1 14:19:28 2011
@@ -4795,7 +4795,8 @@
// Need parens to enforce precedence.
- ParenExpr *PE = new (Context) ParenExpr(SourceLocation(), SourceLocation(),
+ ParenExpr *PE = new (Context) ParenExpr(DeclRefExp->getExprLoc(),
+ DeclRefExp->getExprLoc(),
ME);
ReplaceStmt(DeclRefExp, PE);
return PE;
Modified: cfe/trunk/test/Rewriter/rewrite-block-pointer.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-block-pointer.mm?rev=128726&r1=128725&r2=128726&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/rewrite-block-pointer.mm (original)
+++ cfe/trunk/test/Rewriter/rewrite-block-pointer.mm Fri Apr 1 14:19:28 2011
@@ -94,5 +94,6 @@
addChangeToData = ^() {
return 'b';
};
+ addChangeToData();
}
More information about the cfe-commits
mailing list