[flang-commits] [flang] [flang][acc] Improve lowering of Fortran optional in data clause (PR #102224)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Tue Aug 6 14:18:31 PDT 2024
================
@@ -108,6 +120,9 @@ createDataEntryOp(fir::FirOpBuilder &builder, mlir::Location loc,
})
.getResults()[0];
} else {
+ if (fir::isBoxAddress(baseAddr.getType())) {
+ baseAddr = builder.create<fir::LoadOp>(loc, baseAddr);
+ }
----------------
clementval wrote:
```suggestion
if (fir::isBoxAddress(baseAddr.getType()))
baseAddr = builder.create<fir::LoadOp>(loc, baseAddr);
```
https://github.com/llvm/llvm-project/pull/102224
More information about the flang-commits
mailing list