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 54727b3 commit 6d77e0eCopy full SHA for 6d77e0e
flang/lib/Optimizer/OpenMP/MapInfoFinalization.cpp
@@ -498,7 +498,10 @@ class MapInfoFinalizationPass
498
// ourselves to the possibility of race conditions while this pass
499
// undergoes frequent re-iteration for the near future. So we loop
500
// over function in the module and then map.info inside of those.
501
- getOperation()->walk([&](mlir::func::FuncOp func) {
+ getOperation()->walk([&](mlir::Operation *func) {
502
+ if (!(mlir::isa<mlir::func::FuncOp>(func) ||
503
+ mlir::isa<mlir::omp::DeclareMapperOp>(func)))
504
+ return;
505
// clear all local allocations we made for any boxes in any prior
506
// iterations from previous function scopes.
507
localBoxAllocas.clear();
0 commit comments