We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e504c8 commit 5806eacCopy full SHA for 5806eac
flang/lib/Optimizer/OpenMP/MapInfoFinalization.cpp
@@ -485,7 +485,10 @@ class MapInfoFinalizationPass
485
// ourselves to the possibility of race conditions while this pass
486
// undergoes frequent re-iteration for the near future. So we loop
487
// over function in the module and then map.info inside of those.
488
- getOperation()->walk([&](mlir::func::FuncOp func) {
+ getOperation()->walk([&](mlir::Operation *func) {
489
+ if (!(mlir::isa<mlir::func::FuncOp>(func) ||
490
+ mlir::isa<mlir::omp::DeclareMapperOp>(func)))
491
+ return;
492
// clear all local allocations we made for any boxes in any prior
493
// iterations from previous function scopes.
494
localBoxAllocas.clear();
0 commit comments