summaryrefslogtreecommitdiffstats
path: root/clang/lib/Rewrite
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-04-01 19:19:28 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-04-01 19:19:28 +0000
commit5bba75f1a7af0b753908064fb10d32b5d850b5e1 (patch)
tree58c3f219f117d12967721d2ea154083acc293fb8 /clang/lib/Rewrite
parent1ffe23464a1651c052bf82ec9cb21cd66d3d2d63 (diff)
downloadbcm5719-llvm-5bba75f1a7af0b753908064fb10d32b5d850b5e1.tar.gz
bcm5719-llvm-5bba75f1a7af0b753908064fb10d32b5d850b5e1.zip
ANother rewrite bug, rewriting a call of
__byref block. // rdar://9204669 llvm-svn: 128726
Diffstat (limited to 'clang/lib/Rewrite')
-rw-r--r--clang/lib/Rewrite/RewriteObjC.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Rewrite/RewriteObjC.cpp b/clang/lib/Rewrite/RewriteObjC.cpp
index 54d6fbb236f..88703e19173 100644
--- a/clang/lib/Rewrite/RewriteObjC.cpp
+++ b/clang/lib/Rewrite/RewriteObjC.cpp
@@ -4795,7 +4795,8 @@ Stmt *RewriteObjC::RewriteBlockDeclRefExpr(Expr *DeclRefExp) {
// 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;
OpenPOWER on IntegriCloud