Skip to content

Commit 8e63299

Browse files
committed
Fix rebase issues
1 parent d347022 commit 8e63299

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

flang/lib/Lower/OpenMP.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,11 +1848,13 @@ bool ClauseProcessor::processMap(
18481848
llvm::SmallVector<mlir::Value> bounds;
18491849
std::stringstream asFortran;
18501850

1851-
Fortran::lower::AddrAndBoundsInfo info = Fortran::lower::gatherDataOperandAddrAndBounds<
1852-
Fortran::parser::OmpObject, mlir::omp::DataBoundsType,
1853-
mlir::omp::DataBoundsOp>(
1854-
converter, firOpBuilder, semanticsContext, stmtCtx, ompObject,
1855-
clauseLocation, asFortran, bounds, treatIndexAsSection);
1851+
Fortran::lower::AddrAndBoundsInfo info =
1852+
Fortran::lower::gatherDataOperandAddrAndBounds<
1853+
Fortran::parser::OmpObject, mlir::omp::DataBoundsOp,
1854+
mlir::omp::DataBoundsType>(
1855+
converter, firOpBuilder, semanticsContext, stmtCtx, ompObject,
1856+
clauseLocation, asFortran, bounds, treatIndexAsSection);
1857+
18561858
auto origSymbol =
18571859
converter.getSymbolAddress(*getOmpObjectSymbol(ompObject));
18581860
mlir::Value mapOp, symAddr;
@@ -2821,7 +2823,7 @@ genTargetOp(Fortran::lower::AbstractConverter &converter,
28212823
if (fir::isTypeWithDescriptor(baseOp.getType())) {
28222824
mapOp = processDescriptorTypeMappings(
28232825
semanticsContext, stmtCtx, converter, baseOp.getLoc(), baseOp,
2824-
baseAddr, bounds, name.str(), mapFlag);
2826+
info.addr, bounds, name.str(), mapFlag);
28252827
} else {
28262828
mapOp = createMapInfoOp(
28272829
converter.getFirOpBuilder(), baseOp.getLoc(), baseOp,

0 commit comments

Comments
 (0)