[clang] 3ef7e6c - [clang] Remove an Address::deprecated() call in CGClass.cpp

Arthur Eubanks via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 22 16:19:43 PST 2022


Author: Arthur Eubanks
Date: 2022-02-22T16:19:06-08:00
New Revision: 3ef7e6c53c825903d77a8d004a82c865f493e1bf

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

LOG: [clang] Remove an Address::deprecated() call in CGClass.cpp

Added: 
    

Modified: 
    clang/lib/CodeGen/CGClass.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 612209ef8fe8f..f6cacd07a66f2 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -2148,7 +2148,7 @@ void CodeGenFunction::EmitCXXConstructorCall(const CXXConstructorDecl *D,
     assert(Args.size() == 2 && "unexpected argcount for trivial ctor");
 
     QualType SrcTy = D->getParamDecl(0)->getType().getNonReferenceType();
-    Address Src = Address::deprecated(Args[1].getRValue(*this).getScalarVal(),
+    Address Src = Address(Args[1].getRValue(*this).getScalarVal(), ConvertTypeForMem(SrcTy),
                                       CGM.getNaturalTypeAlignment(SrcTy));
     LValue SrcLVal = MakeAddrLValue(Src, SrcTy);
     QualType DestTy = getContext().getTypeDeclType(ClassDecl);


        


More information about the cfe-commits mailing list