diff options
author | Mariya Podchishchaeva <mariya.podchishchaeva@intel.com> | 2025-04-14 14:17:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-14 14:17:36 +0200 |
commit | 88d0b0835d030635c5d08c9a9754c21b5ac00be9 (patch) | |
tree | 534b1f36839412f790133a5e3e00c889249758a6 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | fe54d1afcca055f464840654dd2ec3fd83aea688 (diff) | |
download | llvm-88d0b0835d030635c5d08c9a9754c21b5ac00be9.zip llvm-88d0b0835d030635c5d08c9a9754c21b5ac00be9.tar.gz llvm-88d0b0835d030635c5d08c9a9754c21b5ac00be9.tar.bz2 |
[MS][clang] Revert vector deleting destructors support (#135611)
Finding operator delete[] is still problematic, without it the extension
is a security hazard, so reverting until the problem with operator
delete[] is figured out.
This reverts the following PRs:
Reland [MS][clang] Add support for vector deleting destructors (llvm#133451)
[MS][clang] Make sure vector deleting dtor calls correct operator delete (llvm#133950)
[MS][clang] Fix crash on deletion of array of pointers (llvm#134088)
[clang] Do not diagnose unused deleted operator delete[] (llvm#134357)
[MS][clang] Error about ambiguous operator delete[] only when required (llvm#135041)
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index d659243..367b51c 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -2119,8 +2119,7 @@ llvm::DISubprogram *CGDebugInfo::CreateCXXMemberFunction( // Emit MS ABI vftable information. There is only one entry for the // deleting dtor. const auto *DD = dyn_cast<CXXDestructorDecl>(Method); - GlobalDecl GD = - DD ? GlobalDecl(DD, Dtor_VectorDeleting) : GlobalDecl(Method); + GlobalDecl GD = DD ? GlobalDecl(DD, Dtor_Deleting) : GlobalDecl(Method); MethodVFTableLocation ML = CGM.getMicrosoftVTableContext().getMethodVFTableLocation(GD); VIndex = ML.Index; |