[Mlir-commits] [mlir] [MLIR] [Python] a few more fixes to type annotaitons (PR #186106)
Maksim Levental
llvmlistbot at llvm.org
Thu Mar 12 10:34:27 PDT 2026
================
@@ -1313,12 +1314,17 @@ class MLIR_PYTHON_API_EXPORTED PySymbolTable {
};
/// Custom exception that allows access to error diagnostic information. This is
-/// converted to the `ir.MLIRError` python exception when thrown.
-struct MLIR_PYTHON_API_EXPORTED MLIRError {
+/// translated to the `ir.MLIRError` python exception when thrown.
+struct MLIR_PYTHON_API_EXPORTED MLIRError : std::exception {
----------------
makslevental wrote:
i'm talking about the fact that you can conform to `std::exception` and yet have arbitrary fields in the struct...
https://github.com/llvm/llvm-project/pull/186106
More information about the Mlir-commits
mailing list