Author: Arthur Eubanks Date: 2022-02-22T16:54:28-08:00 New Revision: cde658fa1f1449d2ec966b8c0df0444b882eb69f
URL: https://github.com/llvm/llvm-project/commit/cde658fa1f1449d2ec966b8c0df0444b882eb69f DIFF: https://github.com/llvm/llvm-project/commit/cde658fa1f1449d2ec966b8c0df0444b882eb69f.diff LOG: [clang] Remove Address::deprecated() calls in CGVTables.cpp Added: Modified: clang/lib/CodeGen/CGVTables.cpp Removed: ################################################################################ diff --git a/clang/lib/CodeGen/CGVTables.cpp b/clang/lib/CodeGen/CGVTables.cpp index 34df7da7985b4..536db8dc4b41a 100644 --- a/clang/lib/CodeGen/CGVTables.cpp +++ b/clang/lib/CodeGen/CGVTables.cpp @@ -91,7 +91,10 @@ static RValue PerformReturnAdjustment(CodeGenFunction &CGF, auto ClassDecl = ResultType->getPointeeType()->getAsCXXRecordDecl(); auto ClassAlign = CGF.CGM.getClassPointerAlignment(ClassDecl); ReturnValue = CGF.CGM.getCXXABI().performReturnAdjustment( - CGF, Address::deprecated(ReturnValue, ClassAlign), Thunk.Return); + CGF, + Address(ReturnValue, CGF.ConvertTypeForMem(ResultType->getPointeeType()), + ClassAlign), + Thunk.Return); if (NullCheckValue) { CGF.Builder.CreateBr(AdjustEnd); @@ -198,7 +201,8 @@ CodeGenFunction::GenerateVarArgsThunk(llvm::Function *Fn, // Find the first store of "this", which will be to the alloca associated // with "this". Address ThisPtr = - Address::deprecated(&*AI, CGM.getClassPointerAlignment(MD->getParent())); + Address(&*AI, ConvertTypeForMem(MD->getThisType()->getPointeeType()), + CGM.getClassPointerAlignment(MD->getParent())); llvm::BasicBlock *EntryBB = &Fn->front(); llvm::BasicBlock::iterator ThisStore = llvm::find_if(*EntryBB, [&](llvm::Instruction &I) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits