https://github.com/clementval updated https://github.com/llvm/llvm-project/pull/75537
>From ae0e461d8c9c013d7d3c2d16d811df6b30e66abd Mon Sep 17 00:00:00 2001 From: Valentin Clement <clement...@gmail.com> Date: Thu, 14 Dec 2023 13:58:33 -0800 Subject: [PATCH] [flang][openacc/mp][NFC] Remove unused baseAddr argument --- flang/lib/Lower/DirectivesCommon.h | 6 +++--- flang/lib/Lower/OpenMP.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flang/lib/Lower/DirectivesCommon.h b/flang/lib/Lower/DirectivesCommon.h index 88a8916663df75..5168fb902df923 100644 --- a/flang/lib/Lower/DirectivesCommon.h +++ b/flang/lib/Lower/DirectivesCommon.h @@ -666,7 +666,7 @@ template <typename BoundsOp, typename BoundsType> llvm::SmallVector<mlir::Value> genBaseBoundsOps(fir::FirOpBuilder &builder, mlir::Location loc, Fortran::lower::AbstractConverter &converter, - fir::ExtendedValue dataExv, mlir::Value baseAddr) { + fir::ExtendedValue dataExv) { mlir::Type idxTy = builder.getIndexType(); mlir::Type boundTy = builder.getType<BoundsType>(); llvm::SmallVector<mlir::Value> bounds; @@ -899,7 +899,7 @@ mlir::Value gatherDataOperandAddrAndBounds( if (fir::unwrapRefType(baseAddr.getType()) .isa<fir::SequenceType>()) bounds = genBaseBoundsOps<BoundsType, BoundsOp>( - builder, operandLocation, converter, compExv, baseAddr); + builder, operandLocation, converter, compExv); asFortran << (*expr).AsFortran(); if (auto loadOp = mlir::dyn_cast_or_null<fir::LoadOp>( @@ -949,7 +949,7 @@ mlir::Value gatherDataOperandAddrAndBounds( if (fir::unwrapRefType(baseAddr.getType()) .isa<fir::SequenceType>()) bounds = genBaseBoundsOps<BoundsType, BoundsOp>( - builder, operandLocation, converter, dataExv, baseAddr); + builder, operandLocation, converter, dataExv); asFortran << name.ToString(); } else { // Unsupported llvm::report_fatal_error( diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp index eeba87fcd15116..7ad644f55f5076 100644 --- a/flang/lib/Lower/OpenMP.cpp +++ b/flang/lib/Lower/OpenMP.cpp @@ -2671,7 +2671,7 @@ genTargetOp(Fortran::lower::AbstractConverter &converter, bounds = Fortran::lower::genBaseBoundsOps<mlir::omp::DataBoundsOp, mlir::omp::DataBoundsType>( converter.getFirOpBuilder(), converter.getCurrentLocation(), - converter, dataExv, baseAddr); + converter, dataExv); llvm::omp::OpenMPOffloadMappingFlags mapFlag = llvm::omp::OpenMPOffloadMappingFlags::OMP_MAP_IMPLICIT; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits