diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-26 19:05:20 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-26 19:05:20 +0000 |
commit | 5743d4d28095f352ae8f964edf6a225f5fff0035 (patch) | |
tree | 922f0333d3cdf6f60084faf57c05a749e3d8f8ed /clang/lib/Frontend/RewriteObjC.cpp | |
parent | f8bd9413d55148b3e997cd232ffb21bebe968a92 (diff) | |
download | bcm5719-llvm-5743d4d28095f352ae8f964edf6a225f5fff0035.tar.gz bcm5719-llvm-5743d4d28095f352ae8f964edf6a225f5fff0035.zip |
Rewriting of imported variable from outer
blocks's argument in the inner block requires special treatment.
Fixes radar 7692419.
llvm-svn: 97244
Diffstat (limited to 'clang/lib/Frontend/RewriteObjC.cpp')
-rw-r--r-- | clang/lib/Frontend/RewriteObjC.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/RewriteObjC.cpp b/clang/lib/Frontend/RewriteObjC.cpp index 0895585e796..26b32478b89 100644 --- a/clang/lib/Frontend/RewriteObjC.cpp +++ b/clang/lib/Frontend/RewriteObjC.cpp @@ -4374,6 +4374,7 @@ void RewriteObjC::GetInnerBlockDeclRefExprs(Stmt *S, if (BlockDeclRefExpr *CDRE = dyn_cast<BlockDeclRefExpr>(S)) if (!isa<FunctionDecl>(CDRE->getDecl()) && !CDRE->isByRef() && + !isa<ParmVarDecl>(CDRE->getDecl()) && !InnerBlockValueDecls.count(CDRE->getDecl())) { InnerBlockValueDecls.insert(CDRE->getDecl()); InnerBlockDeclRefs.push_back(CDRE); |