[Mlir-commits] [mlir] [mlir] Add metadata to Diagnostic. (PR #99398)

Mehdi Amini llvmlistbot at llvm.org
Wed Jul 17 16:03:01 PDT 2024


================
@@ -271,6 +271,9 @@ class Diagnostic {
     return failure();
   }
 
+  /// Returns the current list of diagnostic metadata.
+  SmallVector<DiagnosticArgument, 1>& getMetaData() { return metadata; }
----------------
joker-eph wrote:

```suggestion
  SmallVectorImpl<DiagnosticArgument>& getMetaData() { return metadata; }
```

https://github.com/llvm/llvm-project/pull/99398


More information about the Mlir-commits mailing list