[clang] Reland [MS][clang] Add support for vector deleting destructors (PR #133451)
Hans Wennborg via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 28 08:36:08 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);
----------------
zmodem wrote:
Nice find!
Can you add a test that covers this?
https://github.com/llvm/llvm-project/pull/133451
More information about the cfe-commits
mailing list