mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 12:15:09 -05:00
By default, `mlir::SourceMgrDiagnosticVerifierHandler` used by `CompilerEngine::compile()` prints parse errors to `llvm::errs()`. This makes it impossible for a caller of `CompilerEngine::compile()` to process parse errors or to suppress the emission of error messages to the standard error stream altogether. This change captures parse errors in a string via a string-backed output stream and forwards the error message in the `llvm::Error` instance of the return value.
10 KiB
10 KiB