mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 12:15:09 -05:00
fix: use appropriate type for optimizingTransformer func
the call does return an `std::function` and was being referenced using an `llvm::function_ref`, which apparently with some optim on Mac was referncing bad memory location
This commit is contained in:
@@ -245,7 +245,7 @@ lowerLLVMDialectToLLVMIR(mlir::MLIRContext &context,
|
||||
|
||||
mlir::LogicalResult optimizeLLVMModule(llvm::LLVMContext &llvmContext,
|
||||
llvm::Module &module) {
|
||||
llvm::function_ref<llvm::Error(llvm::Module *)> optPipeline =
|
||||
std::function<llvm::Error(llvm::Module *)> optPipeline =
|
||||
mlir::makeOptimizingTransformer(3, 0, nullptr);
|
||||
|
||||
if (optPipeline(&module))
|
||||
|
||||
Reference in New Issue
Block a user