[flang-commits] [flang] [flang] Adapt PolymorphicOpConversion to run on all top level ops (PR #90597)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Wed May 1 03:52:19 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());
----------------
tblah wrote:
https://github.com/llvm/llvm-project/pull/90721
https://github.com/llvm/llvm-project/pull/90597
More information about the flang-commits
mailing list