[Mlir-commits] [mlir] 07db69e - Use std::function instead of function_ref in MLIR JitRunner
Mehdi Amini
llvmlistbot at llvm.org
Tue Apr 12 00:30:37 PDT 2022
Author: Mehdi Amini
Date: 2022-04-12T07:28:19Z
New Revision: 07db69effedda72efdf7d59f0eee2a4b60bde2d5
URL: https://github.com/llvm/llvm-project/commit/07db69effedda72efdf7d59f0eee2a4b60bde2d5
DIFF: https://github.com/llvm/llvm-project/commit/07db69effedda72efdf7d59f0eee2a4b60bde2d5.diff
LOG: Use std::function instead of function_ref in MLIR JitRunner
This fixes an ASAN failure.
Added:
Modified:
mlir/lib/ExecutionEngine/JitRunner.cpp
Removed:
################################################################################
diff --git a/mlir/lib/ExecutionEngine/JitRunner.cpp b/mlir/lib/ExecutionEngine/JitRunner.cpp
index 5e738002728dd..824d8f56ab6d2 100644
--- a/mlir/lib/ExecutionEngine/JitRunner.cpp
+++ b/mlir/lib/ExecutionEngine/JitRunner.cpp
@@ -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.
More information about the Mlir-commits
mailing list