@@ -594,7 +594,8 @@ Fortran::lower::genCallOpAndResult(
594594
595595 builder.create <cuf::KernelLaunchOp>(
596596 loc, funcType.getResults (), funcSymbolAttr, grid_x, grid_y, grid_z,
597- block_x, block_y, block_z, bytes, stream, operands);
597+ block_x, block_y, block_z, bytes, stream, operands,
598+ /* arg_attrs=*/ nullptr , /* res_attrs=*/ nullptr );
598599 callNumResults = 0 ;
599600 } else if (caller.requireDispatchCall ()) {
600601 // Procedure call requiring a dynamic dispatch. Call is created with
@@ -621,7 +622,8 @@ Fortran::lower::genCallOpAndResult(
621622 dispatch = builder.create <fir::DispatchOp>(
622623 loc, funcType.getResults (), builder.getStringAttr (procName),
623624 caller.getInputs ()[*passArg], operands,
624- builder.getI32IntegerAttr (*passArg), procAttrs);
625+ builder.getI32IntegerAttr (*passArg), /* arg_attrs=*/ nullptr ,
626+ /* res_attrs=*/ nullptr , procAttrs);
625627 } else {
626628 // NOPASS
627629 const Fortran::evaluate::Component *component =
@@ -636,15 +638,17 @@ Fortran::lower::genCallOpAndResult(
636638 passObject = builder.create <fir::LoadOp>(loc, passObject);
637639 dispatch = builder.create <fir::DispatchOp>(
638640 loc, funcType.getResults (), builder.getStringAttr (procName),
639- passObject, operands, nullptr , procAttrs);
641+ passObject, operands, nullptr , /* arg_attrs=*/ nullptr ,
642+ /* res_attrs=*/ nullptr , procAttrs);
640643 }
641644 callNumResults = dispatch.getNumResults ();
642645 if (callNumResults != 0 )
643646 callResult = dispatch.getResult (0 );
644647 } else {
645648 // Standard procedure call with fir.call.
646649 auto call = builder.create <fir::CallOp>(
647- loc, funcType.getResults (), funcSymbolAttr, operands, procAttrs);
650+ loc, funcType.getResults (), funcSymbolAttr, operands,
651+ /* arg_attrs=*/ nullptr , /* res_attrs=*/ nullptr , procAttrs);
648652
649653 callNumResults = call.getNumResults ();
650654 if (callNumResults != 0 )
0 commit comments