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 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(); }