@@ -771,10 +771,11 @@ class AllocateStmtHelper {
771771
772772 // Keep return type the same as a standard AllocatableAllocate call.
773773 mlir::Type retTy = fir::runtime::getModel<int >()(builder.getContext ());
774- return builder
775- .create <cuf::AllocateOp>(
776- loc, retTy, box.getAddr (), errmsg, stream, pinned, source, cudaAttr,
777- errorManager.hasStatSpec () ? builder.getUnitAttr () : nullptr )
774+
775+ return cuf::AllocateOp::create (
776+ builder, loc, retTy, box.getAddr (), errmsg, stream, pinned,
777+ source, cudaAttr,
778+ errorManager.hasStatSpec () ? builder.getUnitAttr () : nullptr )
778779 .getResult ();
779780 }
780781
@@ -840,10 +841,9 @@ static mlir::Value genCudaDeallocate(fir::FirOpBuilder &builder,
840841
841842 // Keep return type the same as a standard AllocatableAllocate call.
842843 mlir::Type retTy = fir::runtime::getModel<int >()(builder.getContext ());
843- return builder
844- .create <cuf::DeallocateOp>(
845- loc, retTy, box.getAddr (), errmsg, cudaAttr,
846- errorManager.hasStatSpec () ? builder.getUnitAttr () : nullptr )
844+ return cuf::DeallocateOp::create (
845+ builder, loc, retTy, box.getAddr (), errmsg, cudaAttr,
846+ errorManager.hasStatSpec () ? builder.getUnitAttr () : nullptr )
847847 .getResult ();
848848}
849849
0 commit comments