mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
fix(main): unchecked llvm expected
This commit is contained in:
@@ -295,9 +295,13 @@ mlir::LogicalResult processInputBuffer(
|
||||
mlir::concretelang::ClientServer<mlir::concretelang::JITSupport>::
|
||||
create(buffer->getBuffer(), options, keySetCache,
|
||||
mlir::concretelang::JITSupport());
|
||||
|
||||
if (!lambdaOrErr) {
|
||||
mlir::concretelang::log_error()
|
||||
<< "Failed to get JIT-lambda " << funcName << " "
|
||||
<< llvm::toString(lambdaOrErr.takeError());
|
||||
return mlir::failure();
|
||||
}
|
||||
llvm::Expected<uint64_t> resOrErr = (*lambdaOrErr)(jitArgs);
|
||||
|
||||
if (!resOrErr) {
|
||||
mlir::concretelang::log_error()
|
||||
<< "Failed to JIT-invoke " << funcName << " with arguments "
|
||||
|
||||
Reference in New Issue
Block a user