File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
flang/lib/Optimizer/Transforms Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,11 @@ class DoConcurrentConversion
186186 llvm::cast<mlir::SymbolRefAttr>(localizerSym);
187187 fir::LocalitySpecifierOp localizer = findLocalizer (loop, localizerName);
188188
189+ if (!localizer.getInitRegion ().empty () ||
190+ !localizer.getDeallocRegion ().empty ())
191+ TODO (localizer.getLoc (), " localizers with `init` and `dealloc` "
192+ " regions are not handled yet." );
193+
189194 // TODO Should this be a heap allocation instead? For now, we allocate
190195 // on the stack for each loop iteration.
191196 mlir::Value localAlloc =
@@ -212,9 +217,6 @@ class DoConcurrentConversion
212217 }
213218
214219 rewriter.replaceAllUsesWith (localArg, localAlloc);
215-
216- // TODO localizers with `init` and `dealloc` regions are not handled
217- // yet.
218220 }
219221
220222 loop.getRegion ().front ().eraseArguments (loop.getNumInductionVars (),
You can’t perform that action at this time.
0 commit comments