diff options
| author | Zequan Wu <zequanwu@google.com> | 2025-11-21 17:14:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-21 17:14:34 -0800 |
| commit | 54a4da9df6906b63878ad6d0ea6da3ed7d2d8432 (patch) | |
| tree | 26d9fa3d54fbec6de66f26ee732881245563f336 /clang/lib/Sema/SemaExprCXX.cpp | |
| parent | 58e2dde45f775328b71b532e65762a9696ccccbd (diff) | |
Revert "Reland [MS][clang] Add support for vector deleting destructors" (#169116)
This reverts 4d10c1165442cbbbc0017b48fcdd7dae1ccf3678 and its two
dependent commits: e6b9805b574bb5c90263ec7fbcb94df76d2807a4 and
c243406a695ca056a07ef4064b0f9feee7685320, see discussion in
https://github.com/llvm/llvm-project/pull/165598#issuecomment-3563825509.
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index 3157119dd453..43bcb4f743cf 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -3612,9 +3612,11 @@ Sema::FindUsualDeallocationFunction(SourceLocation StartLoc, return Result.FD; } -FunctionDecl *Sema::FindDeallocationFunctionForDestructor( - SourceLocation Loc, CXXRecordDecl *RD, bool Diagnose, bool LookForGlobal, - DeclarationName Name) { +FunctionDecl *Sema::FindDeallocationFunctionForDestructor(SourceLocation Loc, + CXXRecordDecl *RD, + bool Diagnose, + bool LookForGlobal) { + DeclarationName Name = Context.DeclarationNames.getCXXOperatorName(OO_Delete); FunctionDecl *OperatorDelete = nullptr; CanQualType DeallocType = Context.getCanonicalTagType(RD); @@ -3647,11 +3649,8 @@ bool Sema::FindDeallocationFunction(SourceLocation StartLoc, CXXRecordDecl *RD, // Try to find operator delete/operator delete[] in class scope. LookupQualifiedName(Found, RD); - if (Found.isAmbiguous()) { - if (!Diagnose) - Found.suppressDiagnostics(); + if (Found.isAmbiguous()) return true; - } Found.suppressDiagnostics(); |
