File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
clang/lib/Frontend/Rewrite Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -4359,16 +4359,18 @@ Stmt *RewriteObjC::SynthBlockInitExpr(BlockExpr *Exp,
4359
4359
DeclRefExpr *Exp = InnerBlockDeclRefs[i];
4360
4360
ValueDecl *VD = Exp->getDecl ();
4361
4361
if (!VD->hasAttr <BlocksAttr>() && !BlockByCopyDeclsPtrSet.count (VD)) {
4362
- // We need to save the copied-in variables in nested
4363
- // blocks because it is needed at the end for some of the API generations.
4364
- // See SynthesizeBlockLiterals routine.
4365
- InnerDeclRefs.push_back (Exp); countOfInnerDecls++;
4362
+ // We need to save the copied-in variables in nested
4363
+ // blocks because it is needed at the end for some of the API
4364
+ // generations. See SynthesizeBlockLiterals routine.
4365
+ InnerDeclRefs.push_back (Exp);
4366
+ countOfInnerDecls++;
4366
4367
BlockDeclRefs.push_back (Exp);
4367
4368
BlockByCopyDeclsPtrSet.insert (VD);
4368
4369
BlockByCopyDecls.push_back (VD);
4369
4370
}
4370
4371
if (VD->hasAttr <BlocksAttr>() && !BlockByRefDeclsPtrSet.count (VD)) {
4371
- InnerDeclRefs.push_back (Exp); countOfInnerDecls++;
4372
+ InnerDeclRefs.push_back (Exp);
4373
+ countOfInnerDecls++;
4372
4374
BlockDeclRefs.push_back (Exp);
4373
4375
BlockByRefDeclsPtrSet.insert (VD);
4374
4376
BlockByRefDecls.push_back (VD);
You can’t perform that action at this time.
0 commit comments