File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ class TypeAliasTemplateDecl;
8080class UnresolvedSetImpl ;
8181class VarTemplateDecl ;
8282enum class ImplicitParamKind ;
83- struct DeleteParamInfo ;
83+ struct UsualDeleteParams ;
8484
8585// Holds a constraint expression along with a pack expansion index, if
8686// expanded.
@@ -2647,7 +2647,7 @@ class FunctionDecl : public DeclaratorDecl,
26472647 bool isTypeAwareOperatorNewOrDelete () const ;
26482648 void setIsTypeAwareOperatorNewOrDelete (bool IsTypeAwareOperator = true );
26492649
2650- DeleteParamInfo getDeleteParamInfo () const ;
2650+ UsualDeleteParams getUsualDeleteParams () const ;
26512651
26522652 // / Compute the language linkage.
26532653 LanguageLinkage getLanguageLinkage () const ;
Original file line number Diff line number Diff line change @@ -2343,7 +2343,7 @@ struct ImplicitDeallocationParameters {
23432343};
23442344
23452345// / The parameters to pass to a usual operator delete.
2346- struct DeleteParamInfo {
2346+ struct UsualDeleteParams {
23472347 TypeAwareAllocationMode TypeAwareDelete = TypeAwareAllocationMode::No;
23482348 bool DestroyingDelete = false ;
23492349 bool Size = false ;
Original file line number Diff line number Diff line change @@ -3552,8 +3552,8 @@ void FunctionDecl::setIsTypeAwareOperatorNewOrDelete(bool IsTypeAware) {
35523552 getASTContext ().setIsTypeAwareOperatorNewOrDelete (this , IsTypeAware);
35533553}
35543554
3555- DeleteParamInfo FunctionDecl::getDeleteParamInfo () const {
3556- DeleteParamInfo Params;
3555+ UsualDeleteParams FunctionDecl::getUsualDeleteParams () const {
3556+ UsualDeleteParams Params;
35573557
35583558 // This function should only be called for operator delete declarations.
35593559 assert (getDeclName ().isAnyOperatorDelete ());
Original file line number Diff line number Diff line change @@ -1442,7 +1442,7 @@ namespace {
14421442 DeleteArgs.add (Traits::get (CGF, Ptr), FPT->getParamType (FirstNonTypeArg));
14431443
14441444 // Figure out what other parameters we should be implicitly passing.
1445- DeleteParamInfo Params;
1445+ UsualDeleteParams Params;
14461446 if (NumPlacementArgs) {
14471447 // A placement deallocation function is implicitly passed an alignment
14481448 // if the placement allocation function was, but is never passed a size.
@@ -1453,7 +1453,7 @@ namespace {
14531453 } else {
14541454 // For a non-placement new-expression, 'operator delete' can take a
14551455 // size and/or an alignment if it has the right parameters.
1456- Params = OperatorDelete->getDeleteParamInfo ();
1456+ Params = OperatorDelete->getUsualDeleteParams ();
14571457 }
14581458
14591459 assert (!Params.DestroyingDelete &&
@@ -1786,7 +1786,7 @@ void CodeGenFunction::EmitDeleteCall(const FunctionDecl *DeleteFD,
17861786 const auto *DeleteFTy = DeleteFD->getType ()->castAs <FunctionProtoType>();
17871787 CallArgList DeleteArgs;
17881788
1789- auto Params = DeleteFD->getDeleteParamInfo ();
1789+ auto Params = DeleteFD->getUsualDeleteParams ();
17901790 auto ParamTypeIt = DeleteFTy->param_type_begin ();
17911791
17921792 std::optional<llvm::AllocaInst *> TagAlloca;
You can’t perform that action at this time.
0 commit comments