diff options
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp')
| -rw-r--r-- | llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp index 04752284d60..acf2c54ba33 100644 --- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp +++ b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp @@ -269,7 +269,9 @@ void InstructionBenchmark::writeYamlTo(const LLVMState &State, llvm::raw_ostream &OS) { llvm::yaml::Output Yout(OS); YamlContext Context(State); + Yout.beginDocuments(); llvm::yaml::yamlize(Yout, *this, /*unused*/ true, Context); + Yout.endDocuments(); } void InstructionBenchmark::readYamlFrom(const LLVMState &State, |

