[clang] ba9944e - [clang] Remove Address::deprecated() in CGCXXABI.h

Arthur Eubanks via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 17 14:23:14 PST 2022


Author: Arthur Eubanks
Date: 2022-02-17T14:23:02-08:00
New Revision: ba9944ea1dff507839df8e4cf9897a5d4916ec68

URL: https://github.com/llvm/llvm-project/commit/ba9944ea1dff507839df8e4cf9897a5d4916ec68
DIFF: https://github.com/llvm/llvm-project/commit/ba9944ea1dff507839df8e4cf9897a5d4916ec68.diff

LOG: [clang] Remove Address::deprecated() in CGCXXABI.h

Added: 
    

Modified: 
    clang/lib/CodeGen/CGCXXABI.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CGCXXABI.h b/clang/lib/CodeGen/CGCXXABI.h
index ba073b3ff4e5..a46f7f37141f 100644
--- a/clang/lib/CodeGen/CGCXXABI.h
+++ b/clang/lib/CodeGen/CGCXXABI.h
@@ -56,7 +56,10 @@ class CGCXXABI {
     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.


        


More information about the cfe-commits mailing list