[clang] [CIR] Call code gen; create empty cir.func op (PR #113483)
David Olsen via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 1 15:22:40 PDT 2024
================
@@ -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>();
----------------
dkolsen-pgi wrote:
Fixed. Changed `getOrLoadDialect` to `loadDialect`.
https://github.com/llvm/llvm-project/pull/113483
More information about the cfe-commits
mailing list