Skip to content

Commit 7ac0177

Browse files
authored
[mlir][ExecutionEngine] Remove stderr printing when propagating errors (#171997)
1 parent 00b92e3 commit 7ac0177

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mlir/lib/CAPI/ExecutionEngine/ExecutionEngine.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,13 @@ mlirExecutionEngineCreate(MlirModule op, int optLevel, int numPaths,
3838

3939
auto tmBuilderOrError = llvm::orc::JITTargetMachineBuilder::detectHost();
4040
if (!tmBuilderOrError) {
41-
llvm::errs() << "Failed to create a JITTargetMachineBuilder for the host "
42-
"because: \n";
4341
consumeError(tmBuilderOrError.takeError());
4442
return MlirExecutionEngine{nullptr};
4543
}
4644
if (enablePIC)
4745
tmBuilderOrError->setRelocationModel(llvm::Reloc::PIC_);
4846
auto tmOrError = tmBuilderOrError->createTargetMachine();
4947
if (!tmOrError) {
50-
llvm::errs() << "Failed to create a TargetMachine for the host because: \n";
5148
consumeError(tmOrError.takeError());
5249
return MlirExecutionEngine{nullptr};
5350
}
@@ -68,7 +65,6 @@ mlirExecutionEngineCreate(MlirModule op, int optLevel, int numPaths,
6865
auto jitOrError = ExecutionEngine::create(unwrap(op), jitOptions,
6966
std::move(tmOrError.get()));
7067
if (!jitOrError) {
71-
llvm::errs() << "Failed to create an ExecutionEngine because: \n";
7268
consumeError(jitOrError.takeError());
7369
return MlirExecutionEngine{nullptr};
7470
}

0 commit comments

Comments
 (0)