[flang-commits] [flang] [flang] Adapt PolymorphicOpConversion to run on all top level ops (PR #90597)
Renaud Kauffmann via flang-commits
flang-commits at lists.llvm.org
Tue Apr 30 09:27:33 PDT 2024
================
@@ -229,7 +229,9 @@ class PolymorphicOpConversion
void runOnOperation() override {
auto *context = &getContext();
- auto mod = getOperation()->getParentOfType<ModuleOp>();
+ auto mod = mlir::dyn_cast_or_null<mlir::ModuleOp>(getOperation());
----------------
Renaud-K wrote:
I believe we can remove the mutex, just a few lines above, if it is to be a module pass.
https://github.com/llvm/llvm-project/pull/90597
More information about the flang-commits
mailing list