fix(compiler/python): Fix api break

This commit is contained in:
Quentin Bourgerie
2021-08-24 17:35:32 +02:00
parent be7301387c
commit 9ccc03b02f

View File

@@ -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");
}