[Mlir-commits] [flang] [mlir] [mlir][OpenMP][flang] make private variable allocation implicit in omp.private (PR #124019)
Leandro Lupori
llvmlistbot at llvm.org
Fri Jan 24 12:33:10 PST 2025
================
@@ -149,7 +172,8 @@ void Fortran::lower::omp::populateByRefInitAndCleanupRegions(
builder.setInsertionPointToEnd(initBlock);
mlir::Value boxAlloca = allocatedPrivVarArg;
mlir::Type innerTy = fir::unwrapRefType(boxTy.getEleTy());
- if (fir::isa_trivial(innerTy)) {
+ bool isChar = fir::isa_char(innerTy);
+ if (fir::isa_trivial(innerTy) || isChar) {
----------------
luporl wrote:
nit: `isChar` is used only in the `if` below.
https://github.com/llvm/llvm-project/pull/124019
More information about the Mlir-commits
mailing list