From ba9944ea1dff507839df8e4cf9897a5d4916ec68 Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Thu, 17 Feb 2022 14:22:39 -0800 Subject: [PATCH] [clang] Remove Address::deprecated() in CGCXXABI.h --- clang/lib/CodeGen/CGCXXABI.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CGCXXABI.h b/clang/lib/CodeGen/CGCXXABI.h index ba073b3..a46f7f3 100644 --- a/clang/lib/CodeGen/CGCXXABI.h +++ b/clang/lib/CodeGen/CGCXXABI.h @@ -56,7 +56,10 @@ protected: return CGF.CXXABIThisValue; } Address getThisAddress(CodeGenFunction &CGF) { - return Address::deprecated(CGF.CXXABIThisValue, CGF.CXXABIThisAlignment); + return Address( + CGF.CXXABIThisValue, + CGF.ConvertTypeForMem(CGF.CXXABIThisDecl->getType()->getPointeeType()), + CGF.CXXABIThisAlignment); } /// Issue a diagnostic about unsupported features in the ABI. -- 2.7.4