We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 736ccf9 commit a26d7b8Copy full SHA for a26d7b8
clang/lib/CodeGen/MicrosoftCXXABI.cpp
@@ -1413,6 +1413,10 @@ llvm::GlobalValue::LinkageTypes MicrosoftCXXABI::getCXXDestructorLinkage(
1413
// is internal.
1414
return llvm::GlobalValue::LinkOnceODRLinkage;
1415
case Dtor_VectorDeleting:
1416
+ // Use the weak, non-ODR linkage for vector deleting destructors to block
1417
+ // inlining. This enables an MS ABI code-size saving optimization that
1418
+ // allows us to avoid emitting array deletion code when arrays of a given
1419
+ // type are not allocated within the final linkage unit.
1420
return llvm::GlobalValue::WeakAnyLinkage;
1421
case Dtor_Comdat:
1422
llvm_unreachable("MS C++ ABI does not support comdat dtors");
0 commit comments