[flang-commits] [flang] [flang] Fix optimization of array assignments after #146408 (PR #147371)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Wed Jul 9 07:42:18 PDT 2025


================
@@ -805,13 +805,12 @@ llvm::LogicalResult BroadcastAssignBufferization::matchAndRewrite(
                                                shape, /*slice=*/mlir::Value{});
     } else {
       // Array references must have fixed shape, when used in assignments.
+      auto refTy = mlir::cast<fir::ReferenceType>(lhs.getType());
----------------
eugeneepshteyn wrote:

Ok, lesson learned: "always listen to Jean" :)

https://github.com/llvm/llvm-project/pull/147371


More information about the flang-commits mailing list