[clang] [MS][clang] Add support for vector deleting destructors (PR #126240)
Reid Kleckner via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 26 15:14:12 PST 2025
================
@@ -7919,3 +7919,38 @@ void CodeGenModule::moveLazyEmissionStates(CodeGenModule *NewBuilder) {
NewBuilder->ABI->MangleCtx = std::move(ABI->MangleCtx);
}
+
+bool CodeGenModule::classNeedsVectorDestructor(const CXXRecordDecl *RD) {
+ CXXDestructorDecl *Dtor = RD->getDestructor();
----------------
rnk wrote:
I did some local experimentation, and I think it is as simple as it seems: the deleting destructor variant *is* exported, so it does get called from other DLLs. I managed to confuse myself thinking about local vftables.
https://github.com/llvm/llvm-project/pull/126240
More information about the cfe-commits
mailing list