Use std::function instead of function_ref in MLIR JitRunner
This fixes an ASAN failure.
This commit is contained in:
parent
6b7e6ea489
commit
07db69effe
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user