Skip to content

Commit

Permalink
Merge remote-tracking branch 'slyalin/mlir' into mlir
Browse files Browse the repository at this point in the history
  • Loading branch information
slyalin committed Jul 4, 2024
2 parents 8078cf6 + 0b53034 commit 59739aa
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,12 @@ class MLIREvaluate {
// in `create` independently
engineOptions.llvmModuleBuilder = lowerToLLVMIR;
auto maybeEngine = mlir::ExecutionEngine::create(module.get(), engineOptions);
assert(maybeEngine && "failed to construct an execution engine");
engine = std::move(maybeEngine.get());
if (maybeEngine) {
engine = std::move(maybeEngine.get());
} else {
llvm::errs() << "failed to construct an execution engine\n";
abort();
}
}

bool invoke_packed(std::vector<void*>& args) {
Expand Down

0 comments on commit 59739aa

Please sign in to comment.