[llvm-exegesis] Fix unhandled error.

Summary: Fixing an unhandled error when calling writeYaml.

Reviewers: courbet

Subscribers: tschuett, llvm-commits

Differential Revision: https://reviews.llvm.org/D48022

llvm-svn: 334405
This commit is contained in:
Guillaume Chatelet 2018-06-11 14:10:10 +00:00
parent a1791be455
commit 015b3e5be4
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ void benchmarkMain() {
std::vector<InstructionBenchmark> Results = ExitOnErr(Runner->run(
GetOpcodeOrDie(State.getInstrInfo()), Filter, NumRepetitions));
for (InstructionBenchmark &Result : Results)
Result.writeYaml(Context, BenchmarkFile);
ExitOnErr(Result.writeYaml(Context, BenchmarkFile));
exegesis::pfm::pfmTerminate();
}