[clang] Remove Address::deprecated() call in CGExprCXX.cpp

This commit is contained in:
Arthur Eubanks 2022-02-17 13:57:46 -08:00
parent f755806813
commit 0e219af475
1 changed files with 3 additions and 4 deletions

View File

@ -2101,10 +2101,9 @@ void CodeGenFunction::EmitCXXDeleteExpr(const CXXDeleteExpr *E) {
GEP.push_back(Zero);
}
Ptr = Address::deprecated(Builder.CreateInBoundsGEP(Ptr.getElementType(),
Ptr.getPointer(), GEP,
"del.first"),
Ptr.getAlignment());
Ptr = Address(Builder.CreateInBoundsGEP(Ptr.getElementType(),
Ptr.getPointer(), GEP, "del.first"),
ConvertTypeForMem(DeleteTy), Ptr.getAlignment());
}
assert(ConvertTypeForMem(DeleteTy) == Ptr.getElementType());