summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/tools/llvm-exegesis/llvm-exegesis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
index 4a3fe354b67..687469df817 100644
--- a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
+++ b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
@@ -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();
}
OpenPOWER on IntegriCloud