Skip to content

Commit 4f6a90a

Browse files
committed
Update builder.create<fir::CallOp> into fir::CallOp::create
1 parent 807148c commit 4f6a90a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flang/lib/Optimizer/Builder/Runtime/Coarray.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ void fir::runtime::genCoSum(fir::FirOpBuilder &builder, mlir::Location loc,
164164
mlir::Value stat, mlir::Value errmsg) {
165165
genCollectiveSubroutine(builder, loc, A, resultImage, stat, errmsg,
166166
PRIFNAME_SUB("co_sum"));
167+
return fir::LoadOp::create(builder, loc, result);
167168
}
168169

169170
/// Generate call to runtime subroutine prif_sync_all

0 commit comments

Comments
 (0)