Skip to content

Commit 3c185db

Browse files
committed
Restore original struct and function name
1 parent ade6f59 commit 3c185db

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

clang/include/clang/AST/Decl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class TypeAliasTemplateDecl;
8080
class UnresolvedSetImpl;
8181
class VarTemplateDecl;
8282
enum 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;

clang/include/clang/AST/ExprCXX.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

clang/lib/AST/Decl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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());

clang/lib/CodeGen/CGExprCXX.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)