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,
43594359 DeclRefExpr *Exp = InnerBlockDeclRefs[i];
43604360 ValueDecl *VD = Exp->getDecl ();
43614361 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++;
43664367 BlockDeclRefs.push_back (Exp);
43674368 BlockByCopyDeclsPtrSet.insert (VD);
43684369 BlockByCopyDecls.push_back (VD);
43694370 }
43704371 if (VD->hasAttr <BlocksAttr>() && !BlockByRefDeclsPtrSet.count (VD)) {
4371- InnerDeclRefs.push_back (Exp); countOfInnerDecls++;
4372+ InnerDeclRefs.push_back (Exp);
4373+ countOfInnerDecls++;
43724374 BlockDeclRefs.push_back (Exp);
43734375 BlockByRefDeclsPtrSet.insert (VD);
43744376 BlockByRefDecls.push_back (VD);
You can’t perform that action at this time.
0 commit comments