================ @@ -484,7 +485,10 @@ class MapInfoFinalizationPass // ourselves to the possibility of race conditions while this pass // undergoes frequent re-iteration for the near future. So we loop // over function in the module and then map.info inside of those. - getOperation()->walk([&](mlir::func::FuncOp func) { + getOperation()->walk([&](mlir::Operation *func) { + if (!(mlir::isa<mlir::func::FuncOp>(func) || + mlir::isa<mlir::omp::DeclareMapperOp>(func))) ---------------- skatrak wrote:
```suggestion if (!mlir::isa<mlir::func::FuncOp, mlir::omp::DeclareMapperOp>(func))) ``` https://github.com/llvm/llvm-project/pull/117046 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits