[libcxx-commits] [clang] [libcxxabi] [clang][ItaniumMangle] Mangle friend function templates with a constr… (PR #110247)
Utkarsh Saxena via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Sep 27 10:37:42 PDT 2024
================
@@ -704,6 +704,15 @@ ItaniumMangleContextImpl::getEffectiveDeclContext(const Decl *D) {
return D->getLexicalDeclContext()->getRedeclContext();
}
+ if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(D)) {
+ // Member-like constrained friends are mangled as if they were members of
----------------
usx95 wrote:
Let's reuse the function decl above.
We could use the `Decl::getAsFunction()` to do both of these checks for us.
```cpp
if (const auto *FD = D->getAsFunction())
```
https://github.com/llvm/llvm-project/pull/110247
More information about the libcxx-commits
mailing list