@@ -1395,7 +1395,7 @@ static UsualDeleteParams getUsualDeleteParams(const FunctionDecl *FD) {
13951395
13961396 if (FD->isTypeAwareOperatorNewOrDelete ()) {
13971397 // Assume Sema has ensured a non-pointer first parameter is
1398- // a type identity
1398+ // a type identity.
13991399 Params.TypedAwareDelete = true ;
14001400 assert (AI != AE);
14011401 ++AI;
@@ -1441,7 +1441,7 @@ namespace {
14411441 QualType ArgType;
14421442 };
14431443
1444- unsigned NumPlacementArgs : 31 ;
1444+ unsigned NumPlacementArgs : 30 ;
14451445 LLVM_PREFERRED_TYPE (bool )
14461446 unsigned PassAlignmentToPlacementDelete : 1 ;
14471447 LLVM_PREFERRED_TYPE (bool )
@@ -1829,7 +1829,7 @@ void CodeGenFunction::EmitDeleteCall(const FunctionDecl *DeleteFD,
18291829 auto Params = getUsualDeleteParams (DeleteFD);
18301830 auto ParamTypeIt = DeleteFTy->param_type_begin ();
18311831
1832- llvm::AllocaInst *TypeIdentityag = nullptr ;
1832+ llvm::AllocaInst *TypeIdentityArg = nullptr ;
18331833 if (Params.TypedAwareDelete ) {
18341834 QualType SpecializedTypeIdentity = *ParamTypeIt++;
18351835 CXXScalarValueInitExpr TypeIdentityParam (SpecializedTypeIdentity, nullptr ,
@@ -1890,8 +1890,8 @@ void CodeGenFunction::EmitDeleteCall(const FunctionDecl *DeleteFD,
18901890 // Emit the call to delete.
18911891 EmitNewDeleteCall (*this , DeleteFD, DeleteFTy, DeleteArgs);
18921892
1893- if (TypeIdentityag && TypeIdentityag ->use_empty ())
1894- TypeIdentityag ->eraseFromParent ();
1893+ if (TypeIdentityArg && TypeIdentityArg ->use_empty ())
1894+ TypeIdentityArg ->eraseFromParent ();
18951895
18961896 // If call argument lowering didn't use the destroying_delete_t alloca,
18971897 // remove it again.
0 commit comments