From: Arthur Eubanks Date: Thu, 17 Feb 2022 22:22:39 +0000 (-0800) Subject: [clang] Remove Address::deprecated() in CGCXXABI.h X-Git-Tag: upstream/15.0.7~15999 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba9944ea1dff507839df8e4cf9897a5d4916ec68;p=platform%2Fupstream%2Fllvm.git [clang] Remove Address::deprecated() in CGCXXABI.h --- 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.