mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 20:25:34 -05:00
16 lines
566 B
C++
16 lines
566 B
C++
// Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
|
|
// See https://github.com/zama-ai/homomorphizer/blob/master/LICENSE.txt for license information.
|
|
|
|
#include <concretelang/Support/Error.h>
|
|
|
|
namespace mlir {
|
|
namespace concretelang {
|
|
// Specialized `operator<<` for `llvm::Error` that marks the error
|
|
// as checked through `std::move` and `llvm::toString`
|
|
StreamStringError &operator<<(StreamStringError &se, llvm::Error &err) {
|
|
se << llvm::toString(std::move(err));
|
|
return se;
|
|
}
|
|
} // namespace concretelang
|
|
} // namespace mlir
|