Skip to content

Commit 61c4259

Browse files
committed
[mlir][ExecutionEngine] propagate error from createTargetMachine
1 parent 3841e7d commit 61c4259

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/CAPI/ExecutionEngine/ExecutionEngine.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ mlirExecutionEngineCreate(MlirModule op, int optLevel, int numPaths,
4343
}
4444
auto tmOrError = tmBuilderOrError->createTargetMachine();
4545
if (!tmOrError) {
46-
llvm::errs() << "Failed to create a TargetMachine for the host\n";
46+
llvm::errs() << "Failed to create a TargetMachine for the host because: "
47+
<< tmOrError.takeError();
4748
return MlirExecutionEngine{nullptr};
4849
}
4950

0 commit comments

Comments
 (0)