================ @@ -55,6 +55,9 @@ class CIRGenerator : public clang::ASTConsumer { void Initialize(clang::ASTContext &astContext) override; bool HandleTopLevelDecl(clang::DeclGroupRef group) override; mlir::ModuleOp getModule() const; + std::unique_ptr<mlir::MLIRContext> takeContext() { ---------------- bcardosolopes wrote:
I thinks dates back to early prototypes for CIR and clang-tidy integration, but seems like the final version doesn't need it either, see `clang-tools-extra/clang-tidy/cir/Lifetime.cpp`. Should be fine to get rid of it. https://github.com/llvm/llvm-project/pull/124650 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits