forked from OSchip/llvm-project
[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:
parent
a1791be455
commit
015b3e5be4
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue