Use std::function instead of function_ref in MLIR JitRunner

This fixes an ASAN failure.
This commit is contained in:
Mehdi Amini 2022-04-12 07:28:19 +00:00
parent 6b7e6ea489
commit 07db69effe

View File

@ -90,7 +90,7 @@ struct Options {
struct CompileAndExecuteConfig {
/// LLVM module transformer that is passed to ExecutionEngine.
llvm::function_ref<llvm::Error(llvm::Module *)> transformer;
std::function<llvm::Error(llvm::Module *)> transformer;
/// A custom function that is passed to ExecutionEngine. It processes MLIR
/// module and creates LLVM IR module.