================ @@ -37,14 +40,39 @@ class CIRGenConsumer : public clang::ASTConsumer { const LangOptions &LangOptions, const FrontendOptions &FEOptions, std::unique_ptr<raw_pwrite_stream> OS) - : OutputStream(std::move(OS)), FS(VFS), + : Action(Action), OutputStream(std::move(OS)), FS(VFS), Gen(std::make_unique<CIRGenerator>(DiagnosticsEngine, std::move(VFS), CodeGenOptions)) {} + void Initialize(ASTContext &Ctx) override { + assert(!Context && "initialized multiple times"); + + Context = &Ctx; + ---------------- smeenai wrote:
The newlines seem superfluous, unless there's more to be filled in here later. 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