[clang] [clang][Itanium Mangle] Enable mangling of enclosing class for member… (PR #110503)
Viktoriia Bakalova via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 2 02:24:43 PDT 2024
================
@@ -693,7 +693,7 @@ ItaniumMangleContextImpl::getEffectiveDeclContext(const Decl *D) {
if (VD->isExternC())
return getASTContext().getTranslationUnitDecl();
- if (const auto *FD = D->getAsFunction()) {
+ if (const auto *FD = dyn_cast<FunctionDecl>(D)) {
----------------
VitaNuo wrote:
Thank you, simplified.
https://github.com/llvm/llvm-project/pull/110503
More information about the cfe-commits
mailing list