This is a footgun: assigning a null std::function to a function_ref
does not yield a null function_ref...
mlir::ExecutionEngineOptions engineOptions;
engineOptions.llvmModuleBuilder = config.llvmModuleBuilder;
- engineOptions.transformer = config.transformer;
+ if (config.transformer)
+ engineOptions.transformer = config.transformer;
engineOptions.jitCodeGenOptLevel = jitCodeGenOptLevel;
engineOptions.sharedLibPaths = executionEngineLibs;
engineOptions.enableObjectCache = true;