[Mlir-commits] [mlir] fb27e8c - [MLIR][NFC] Get DiagnosticEngine as a reference in doc

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Aug 4 12:01:51 PDT 2021


Author: Alfsonso Gregory
Date: 2021-08-04T19:00:18Z
New Revision: fb27e8c76e04e093dcd378b8a76341a7b6ed3b0c

URL: https://github.com/llvm/llvm-project/commit/fb27e8c76e04e093dcd378b8a76341a7b6ed3b0c
DIFF: https://github.com/llvm/llvm-project/commit/fb27e8c76e04e093dcd378b8a76341a7b6ed3b0c.diff

LOG: [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

Added: 
    

Modified: 
    mlir/docs/Diagnostics.md

Removed: 
    


################################################################################
diff  --git a/mlir/docs/Diagnostics.md b/mlir/docs/Diagnostics.md
index 42d9840b0561a..1e27318a7a6a1 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,


        


More information about the Mlir-commits mailing list