From 07db69effedda72efdf7d59f0eee2a4b60bde2d5 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Tue, 12 Apr 2022 07:28:19 +0000 Subject: [PATCH] Use std::function instead of function_ref in MLIR JitRunner This fixes an ASAN failure. --- mlir/lib/ExecutionEngine/JitRunner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/lib/ExecutionEngine/JitRunner.cpp b/mlir/lib/ExecutionEngine/JitRunner.cpp index 5e73800..824d8f5 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 transformer; + std::function transformer; /// A custom function that is passed to ExecutionEngine. It processes MLIR /// module and creates LLVM IR module. -- 2.7.4