[clang] Reland [MS][clang] Add support for vector deleting destructors (PR #133451)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 28 08:41:22 PDT 2025
================
@@ -7976,6 +7976,8 @@ void CodeGenModule::requireVectorDestructorDefinition(const CXXRecordDecl *RD) {
auto *NewFn = llvm::Function::Create(
cast<llvm::FunctionType>(VDEntry->getValueType()),
llvm::Function::ExternalLinkage, VDName, &getModule());
+ SetFunctionAttributes(VectorDtorGD, NewFn, /*IsIncompleteFunction*/ false,
+ /*IsThunk*/ false);
----------------
Fznamznon wrote:
Oh, I actually added a test for that, just forgot to hit git add. Here it is https://github.com/llvm/llvm-project/pull/133451/commits/dd4f396c36804c328996ed69ea0388956857b4f1
https://github.com/llvm/llvm-project/pull/133451
More information about the cfe-commits
mailing list