From 0e219af475430ab338c9d76a101a78304a64f78a Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Thu, 17 Feb 2022 13:57:46 -0800 Subject: [PATCH] [clang] Remove Address::deprecated() call in CGExprCXX.cpp --- clang/lib/CodeGen/CGExprCXX.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/clang/lib/CodeGen/CGExprCXX.cpp b/clang/lib/CodeGen/CGExprCXX.cpp index 9596ed34e5e9..54c87a7361b1 100644 --- a/clang/lib/CodeGen/CGExprCXX.cpp +++ b/clang/lib/CodeGen/CGExprCXX.cpp @@ -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());