================
@@ -1868,17 +1868,40 @@ void CXXNameMangler::mangleLocalName(GlobalDecl GD,
const RecordDecl *RD = GetLocalClassDecl(D);
const DeclContext *DC = Context.getEffectiveDeclContext(RD ? RD : D);
+ if (const auto *VD = dyn_cast<VarDecl>(D); VD && VD->isInitCapture()) {
----------------
efriedma-quic wrote:
The logic in this function for handling init-captures goes through a lot of
cases: you separately handle init captures with a closure prefix, init captures
in a local lambda, and init captures which are neither. Is it possible to
unify the cases by fixing the "context" computation? Maybe something in
getEffectiveDeclContext()?
https://github.com/llvm/llvm-project/pull/182667
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits