enhance(compiler): fix warnings

remove unused signature, functions, variable
remove pessimizing-moves
add cast before comparison
This commit is contained in:
Mayeul@Zama
2022-02-24 18:40:45 +01:00
committed by mayeul-zama
parent c440fc30f8
commit 73bb1c03d8
7 changed files with 19 additions and 37 deletions

View File

@@ -307,7 +307,7 @@ mlir::LogicalResult processInputBuffer(
if (!resOrErr) {
mlir::concretelang::log_error()
<< "Failed to JIT-invoke " << funcName << " with arguments "
<< jitArgs << ": " << llvm::toString(std::move(resOrErr.takeError()));
<< jitArgs << ": " << llvm::toString(resOrErr.takeError());
return mlir::failure();
}
@@ -348,13 +348,14 @@ mlir::LogicalResult processInputBuffer(
break;
case JIT_INVOKE:
// Case just here to satisfy the compiler; already handled above
abort();
break;
}
auto retOrErr = ce.compile(std::move(buffer), target, outputLib);
if (!retOrErr) {
mlir::concretelang::log_error()
<< llvm::toString(std::move(retOrErr.takeError())) << "\n";
<< llvm::toString(retOrErr.takeError()) << "\n";
return mlir::failure();
}