[PATCH] D48022: [llvm-exegesis] Fix unhandled error.

Guillaume Chatelet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 11 07:14:46 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL334405: [llvm-exegesis] Fix unhandled error. (authored by gchatelet, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D48022

Files:
  llvm/trunk/tools/llvm-exegesis/llvm-exegesis.cpp


Index: llvm/trunk/tools/llvm-exegesis/llvm-exegesis.cpp
===================================================================
--- llvm/trunk/tools/llvm-exegesis/llvm-exegesis.cpp
+++ llvm/trunk/tools/llvm-exegesis/llvm-exegesis.cpp
@@ -148,7 +148,7 @@
   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();
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48022.150747.patch
Type: text/x-patch
Size: 583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180611/f5f242a7/attachment.bin>


More information about the llvm-commits mailing list