https://github.com/Fznamznon created https://github.com/llvm/llvm-project/pull/137464
None >From e6d3f185e8e5dffa65856391e4d709c167f96805 Mon Sep 17 00:00:00 2001 From: Mariya Podchishchaeva <fznamzno...@gmail.com> Date: Sat, 26 Apr 2025 18:28:44 +0200 Subject: [PATCH] [clang][NFC] Avoid a duplicate variable in SemaExprCXX.cpp --- clang/lib/Sema/SemaExprCXX.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index 72edb72ceb600..2aaef87591699 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -3596,9 +3596,8 @@ FunctionDecl *Sema::FindDeallocationFunctionForDestructor(SourceLocation Loc, // If there's no class-specific operator delete, look up the global // non-array delete. - QualType RecordType = Context.getRecordType(RD); - IDP.PassAlignment = - alignedAllocationModeFromBool(hasNewExtendedAlignment(*this, RecordType)); + IDP.PassAlignment = alignedAllocationModeFromBool( + hasNewExtendedAlignment(*this, DeallocType)); IDP.PassSize = SizedDeallocationMode::Yes; return FindUsualDeallocationFunction(Loc, IDP, Name); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits