[llvm] r334405 - [llvm-exegesis] Fix unhandled error.
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 11 07:10:10 PDT 2018
Author: gchatelet
Date: Mon Jun 11 07:10:10 2018
New Revision: 334405
URL: http://llvm.org/viewvc/llvm-project?rev=334405&view=rev
Log:
[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
Modified:
llvm/trunk/tools/llvm-exegesis/llvm-exegesis.cpp
Modified: llvm/trunk/tools/llvm-exegesis/llvm-exegesis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/llvm-exegesis.cpp?rev=334405&r1=334404&r2=334405&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/llvm-exegesis.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/llvm-exegesis.cpp Mon Jun 11 07:10:10 2018
@@ -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();
}
More information about the llvm-commits
mailing list