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