[clang] [MS-ABI] create unique vftable name for vftable defined with internal alias. (PR #71748)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 9 09:52:28 PST 2023


efriedma-quic wrote:

> That seems reasonable, however, there are other QOI reasons for attempting to generate globally unique names for lambdas

Sure.  But we wouldn't want to special-case vftables for that.

> I think our strategy to ensure internal lambdas like this are globally unique is that they appear in some externally visible scope which can only be defined once, and that scope gets mangled into the name of the lambda. Is that happening here? I don't have an MS demangler handy to confirm against the test case.

In the testcase, the lambda is just at global scope.  Not sure what you're expecting to happen here.

https://github.com/llvm/llvm-project/pull/71748


More information about the cfe-commits mailing list