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