[PATCH] D77982: [Windows SEH] Fix the frame-ptr of a nested-filter within a _finally

Ten Tzen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 15 23:25:46 PDT 2020


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





More information about the cfe-commits mailing list