[flang-commits] [flang] [flang][OpenMP] Support reduction of POINTER variables (PR #95148)
Sergio Afonso via flang-commits
flang-commits at lists.llvm.org
Thu Jun 13 03:59:24 PDT 2024
================
@@ -587,7 +592,8 @@ createReductionInitRegion(fir::FirOpBuilder &builder, mlir::Location loc,
mlir::OpBuilder::InsertionGuard guard(builder);
createReductionCleanupRegion(builder, loc, reductionDecl);
} else {
- assert(!isAllocatable && "Allocatable arrays must be heap allocated");
+ assert(!isAllocatableOrPointer &&
+ "Allocatable arrays must be heap allocated");
----------------
skatrak wrote:
Nit: Should this error message be updated?
https://github.com/llvm/llvm-project/pull/95148
More information about the flang-commits
mailing list