[clang] Remove Address::deprecated() in CGCXXABI.h
authorArthur Eubanks <aeubanks@google.com>
Thu, 17 Feb 2022 22:22:39 +0000 (14:22 -0800)
committerArthur Eubanks <aeubanks@google.com>
Thu, 17 Feb 2022 22:23:02 +0000 (14:23 -0800)
clang/lib/CodeGen/CGCXXABI.h

index ba073b3..a46f7f3 100644 (file)
@@ -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.