================ @@ -31,9 +34,14 @@ void CIRGenerator::Initialize(ASTContext &astCtx) { this->astCtx = &astCtx; - cgm = std::make_unique<CIRGenModule>(*mlirCtx, astCtx, codeGenOpts, diags); + mlirCtx = std::make_unique<mlir::MLIRContext>(); + mlirCtx->getOrLoadDialect<mlir::cir::CIRDialect>(); ---------------- AaronBallman wrote:
I'm surprised to see something that's named `get()` and doesn't actually look at the return value or accept any arguments; what's going on here? https://github.com/llvm/llvm-project/pull/113483 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits