From 9ccc03b02f1d91eec3dc424d1e3ba7e6717c4fd5 Mon Sep 17 00:00:00 2001 From: Quentin Bourgerie Date: Tue, 24 Aug 2021 17:35:32 +0200 Subject: [PATCH] fix(compiler/python): Fix api break --- compiler/python/CompilerAPIModule.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler/python/CompilerAPIModule.cpp b/compiler/python/CompilerAPIModule.cpp index a39e98346..f9a0339c4 100644 --- a/compiler/python/CompilerAPIModule.cpp +++ b/compiler/python/CompilerAPIModule.cpp @@ -56,10 +56,9 @@ void zamalang::python::populateCompilerAPISubmodule(pybind11::module &m) { }) .def("compile_fhe", [](CompilerEngine &engine, std::string mlir_input) { - auto result = engine.compileFHE(mlir_input); + auto result = engine.compile(mlir_input); if (!result) { - llvm::errs() - << "Compilation failed: " << result.takeError() << "\n"; + llvm::errs() << "Compilation failed: " << result << "\n"; throw std::runtime_error( "failed compiling, see previous logs for more info"); }