[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
This commit is contained in:
Alfsonso Gregory authored and rdzhabarov committed 2021-08-04 19:00:18 +00:00
1 parent 41354942c5
commit fb27e8c76e
1 file changed
+1 -1
+1 -1
View File
@@ -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,