mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
Quick fix due to ordering of includes, had to add #include <mlir/Transforms/DialectConversion.h> to include/concretelang/Conversion/Utils/GenericOpTypeConversionPattern.h
18 lines
572 B
C++
18 lines
572 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
|