From 582e5dd5553e3089fef97f9ab5a3f063e0160fa9 Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Mon, 11 Jun 2018 14:10:10 +0000 Subject: [PATCH] [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334405 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-exegesis/llvm-exegesis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-exegesis/llvm-exegesis.cpp b/tools/llvm-exegesis/llvm-exegesis.cpp index 4a3fe354b67..687469df817 100644 --- a/tools/llvm-exegesis/llvm-exegesis.cpp +++ b/tools/llvm-exegesis/llvm-exegesis.cpp @@ -148,7 +148,7 @@ void benchmarkMain() { std::vector 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(); } -- 2.11.0