[clang] 0e219af - [clang] Remove Address::deprecated() call in CGExprCXX.cpp
Arthur Eubanks via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 17 13:58:38 PST 2022
Author: Arthur Eubanks
Date: 2022-02-17T13:58:26-08:00
New Revision: 0e219af475430ab338c9d76a101a78304a64f78a
URL: https://github.com/llvm/llvm-project/commit/0e219af475430ab338c9d76a101a78304a64f78a
DIFF: https://github.com/llvm/llvm-project/commit/0e219af475430ab338c9d76a101a78304a64f78a.diff
LOG: [clang] Remove Address::deprecated() call in CGExprCXX.cpp
Added:
Modified:
clang/lib/CodeGen/CGExprCXX.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGExprCXX.cpp b/clang/lib/CodeGen/CGExprCXX.cpp
index 9596ed34e5e9d..54c87a7361b1c 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());
More information about the cfe-commits
mailing list