[clang] [Clang] Fix Itanium mangling crash for local lambda in ctor/dtor (PR #181068)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 20 21:35:22 PST 2026
================
@@ -1856,6 +1856,18 @@ static GlobalDecl getParentOfLocalEntity(const DeclContext *DC) {
return GD;
}
+// Build a parent GlobalDecl for unqualified-name mangling, preserving
+// constructor/destructor complete-object structor kinds.
+static GlobalDecl getParentGlobalDecl(const NamedDecl *ND) {
----------------
eiytoq wrote:
Good point. I’ve narrowed the patch to the crash path only (`manglePrefix`) and removed the broader helper.
https://github.com/llvm/llvm-project/pull/181068
More information about the cfe-commits
mailing list