@@ -3577,7 +3577,7 @@ processReductionCombiner(lower::AbstractConverter &converter,
35773577 const parser::OmpStylizedInstance &combinerInstance =
35783578 combinerExpression.v .front ();
35793579 const parser::OmpStylizedInstance::Instance &instance =
3580- std::get<parser::OmpStylizedInstance::Instance>(combinerInstance.t );
3580+ std::get<parser::OmpStylizedInstance::Instance>(combinerInstance.t );
35813581 if (const auto *as = std::get_if<parser::AssignmentStmt>(&instance.u )) {
35823582 auto &expr = std::get<parser::Expr>(as->t );
35833583 genCombinerCB = [&](fir::FirOpBuilder &builder, mlir::Location loc,
@@ -3586,7 +3586,8 @@ processReductionCombiner(lower::AbstractConverter &converter,
35863586 const auto &evalExpr = makeExpr (expr, semaCtx);
35873587 lower::SymMapScope scope (symTable);
35883588 const std::list<parser::OmpStylizedDeclaration> &declList =
3589- std::get<std::list<parser::OmpStylizedDeclaration>>(combinerInstance.t );
3589+ std::get<std::list<parser::OmpStylizedDeclaration>>(
3590+ combinerInstance.t );
35903591 for (const parser::OmpStylizedDeclaration &decl : declList) {
35913592 auto &name = std::get<parser::ObjectName>(decl.var .t );
35923593 mlir::Value addr = lhs;
@@ -3599,13 +3600,13 @@ processReductionCombiner(lower::AbstractConverter &converter,
35993600
36003601 assert (name.symbol && " Reduction object name does not have a symbol" );
36013602 if (!fir::conformsWithPassByRef (type)) {
3602- addr = builder.createTemporary (loc, type);
3603- fir::StoreOp::create (builder, loc, isRhs ? rhs : lhs, addr);
3603+ addr = builder.createTemporary (loc, type);
3604+ fir::StoreOp::create (builder, loc, isRhs ? rhs : lhs, addr);
36043605 }
36053606 fir::FortranVariableFlagsEnum extraFlags = {};
36063607 fir::FortranVariableFlagsAttr attributes =
3607- Fortran::lower::translateSymbolAttributes (builder.getContext (),
3608- *name.symbol , extraFlags);
3608+ Fortran::lower::translateSymbolAttributes (builder.getContext (),
3609+ *name.symbol , extraFlags);
36093610 auto declareOp = hlfir::DeclareOp::create (
36103611 builder, loc, addr, name.ToString (), nullptr , {}, nullptr , nullptr ,
36113612 0 , attributes);
@@ -3615,8 +3616,7 @@ processReductionCombiner(lower::AbstractConverter &converter,
36153616 lower::StatementContext stmtCtx;
36163617 mlir::Value result = fir::getBase (
36173618 convertExprToValue (loc, converter, evalExpr, symTable, stmtCtx));
3618- if (auto refType =
3619- llvm::dyn_cast<fir::ReferenceType>(result.getType ()))
3619+ if (auto refType = llvm::dyn_cast<fir::ReferenceType>(result.getType ()))
36203620 if (lhs.getType () == refType.getElementType ())
36213621 result = fir::LoadOp::create (builder, loc, result);
36223622 stmtCtx.finalizeAndPop ();
0 commit comments