mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
[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:
1 parent
41354942c5
commit
fb27e8c76e
1 file changed
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user