Skip to content

Commit 3914642

Browse files
author
git apple-llvm automerger
committed
Merge commit 'a05910a270cc' from llvm.org/main into next
2 parents 57a36e3 + a05910a commit 3914642

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/tools/llvm-exegesis/llvm-exegesis.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,9 @@ static void runBenchmarkConfigurations(
423423
if (Err) {
424424
// Errors from executing the snippets are fine.
425425
// All other errors are a framework issue and should fail.
426-
if (!Err.isA<SnippetExecutionFailure>()) {
427-
llvm::errs() << "llvm-exegesis error: " << toString(std::move(Err));
428-
exit(1);
429-
}
426+
if (!Err.isA<SnippetExecutionFailure>())
427+
ExitOnErr(std::move(Err));
428+
430429
BenchmarkResult.Error = toString(std::move(Err));
431430
}
432431
AllResults.push_back(std::move(BenchmarkResult));

0 commit comments

Comments
 (0)