[Mlir-commits] [mlir] [mlir][async] Avoid crash when not using `func.func` (PR #72801)

Rik Huijzer llvmlistbot at llvm.org
Mon Nov 20 10:24:19 PST 2023


================
@@ -102,6 +102,10 @@ struct AsyncParallelForPass
     : public impl::AsyncParallelForBase<AsyncParallelForPass> {
   AsyncParallelForPass() = default;
 
+  void getDependentDialects(DialectRegistry &registry) const override {
+    registry.insert<async::AsyncDialect, func::FuncDialect>();
+  }
+
----------------
rikhuijzer wrote:

Nice catch! Thanks

https://github.com/llvm/llvm-project/pull/72801


More information about the Mlir-commits mailing list