Skip to content

Commit f62f36b

Browse files
authored
[clang][NFC] Avoid a duplicate variable in SemaExprCXX.cpp (#137464)
1 parent db859db commit f62f36b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/lib/Sema/SemaExprCXX.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3596,9 +3596,8 @@ FunctionDecl *Sema::FindDeallocationFunctionForDestructor(SourceLocation Loc,
35963596

35973597
// If there's no class-specific operator delete, look up the global
35983598
// non-array delete.
3599-
QualType RecordType = Context.getRecordType(RD);
3600-
IDP.PassAlignment =
3601-
alignedAllocationModeFromBool(hasNewExtendedAlignment(*this, RecordType));
3599+
IDP.PassAlignment = alignedAllocationModeFromBool(
3600+
hasNewExtendedAlignment(*this, DeallocType));
36023601
IDP.PassSize = SizedDeallocationMode::Yes;
36033602
return FindUsualDeallocationFunction(Loc, IDP, Name);
36043603
}

0 commit comments

Comments
 (0)