From fb27e8c76e04e093dcd378b8a76341a7b6ed3b0c Mon Sep 17 00:00:00 2001 From: Alfsonso Gregory Date: Wed, 4 Aug 2021 18:31:11 +0000 Subject: [PATCH] [MLIR][NFC] Get DiagnosticEngine as a reference in doc 'mlir::DiagnosticEngine::DiagnosticEngine(const mlir::DiagnosticEngine&)' is implicitly deleted because the default definition would be ill-formed. Reviewed By: rdzhabarov Differential Revision: https://reviews.llvm.org/D107287 --- mlir/docs/Diagnostics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/docs/Diagnostics.md b/mlir/docs/Diagnostics.md index 42d9840..1e27318 100644 --- a/mlir/docs/Diagnostics.md +++ b/mlir/docs/Diagnostics.md @@ -26,7 +26,7 @@ the diagnostic should be propagated to any previously registered handlers. It can be interfaced with via an `MLIRContext` instance. ```c++ -DiagnosticEngine engine = ctx->getDiagEngine(); +DiagnosticEngine& engine = ctx->getDiagEngine(); /// Handle the reported diagnostic. // Return success to signal that the diagnostic has either been fully processed, -- 2.7.4