[flang-commits] [flang] [flang] Optimize assignments of multidimensional arrays (PR #146408)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Mon Jul 7 06:28:51 PDT 2025
eugeneepshteyn wrote:
@luporl , this change seems to cause regression with a test in llvm-test-suite:
```
$ flang -c llvm-test-suite/Fortran/gfortran/regression/ISO_Fortran_binding_1.f90 -O1
flang: llvm-project/llvm/include/llvm/Support/Casting.h:572: decltype(auto) llvm::cast(From &) [To = mlir::arith::ConstantOp, From = mlir::Operation]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
```
The same failure can be observed in various apps that use C interop in similar fashion.
The failure is gone if I revert this patch in my local workspace.
Could you please check?
https://github.com/llvm/llvm-project/pull/146408
More information about the flang-commits
mailing list