tentzen added a comment.
It can be greater than 2 because this Map includes Decls of User locals from
parent.
see CodeGenFunction::EmitCapturedLocals() (the same place of this fix).
..
auto I = ParentCGF.LocalDeclMap.find(VD);
if (I == ParentCGF.LocalDeclMap.end())
continue;
Address ParentVar = I->second;
setAddrOfLocalVar(
VD, recoverAddrOfEscapedLocal(ParentCGF, ParentVar, ParentFP));
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77982/new/
https://reviews.llvm.org/D77982
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits