[flang-commits] [flang] [flang][coarray] Fix error fir.store mismatch memory reference type in genCoBounds #193131 (PR #194870)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Wed Apr 29 07:43:12 PDT 2026
================
@@ -410,6 +410,8 @@ genCoBounds(Fortran::lower::AbstractConverter &converter, mlir::Location loc,
std::get<1>(allocSpec.t)) {
auto expr = Fortran::semantics::GetExpr(*lastCobound);
lb = fir::getBase(converter.genExprValue(loc, expr, stmtCtx));
+ if (lb.getType() != i64Ty)
----------------
eugeneepshteyn wrote:
Is the type check here necessary? I think if you always have a convert to i64, it won't be added if the types already match.
https://github.com/llvm/llvm-project/pull/194870
More information about the flang-commits
mailing list