[flang-commits] [flang] [flang][lowering] Implement component-wise initialization for derived types (PR #187465)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Thu Mar 19 07:30:34 PDT 2026
================
@@ -823,8 +1068,8 @@ void Fortran::lower::defaultInitializeAtRuntime(
// 15.5.2.12 point 3, absent optional dummies are not initialized.
// Creating descriptor/passing null descriptor to the runtime would
// create runtime crashes.
- auto isPresent = fir::IsPresentOp::create(builder, loc, builder.getI1Type(),
- fir::getBase(exv));
+ auto isPresent = builder.create<fir::IsPresentOp>(loc, builder.getI1Type(),
+ fir::getBase(exv));
----------------
tblah wrote:
Please keep the new form for operation creation: OpTy::create(...). This interacts much better with IDEs because they can more easily determine the available overloads.
https://github.com/llvm/llvm-project/pull/187465
More information about the flang-commits
mailing list