diff options
author | Clement Courbet <courbet@google.com> | 2018-04-04 12:01:46 +0000 |
---|---|---|
committer | Clement Courbet <courbet@google.com> | 2018-04-04 12:01:46 +0000 |
commit | 8fb6e40de81c7cb41eb28cc4d6b5d17bd738bea6 (patch) | |
tree | 9d037c0e5d5841177e11976715c29b39243a7369 /llvm/tools/llvm-exegesis/lib/BenchmarkResult.h | |
parent | 96c09c5b0976464be05434d640c1bec407c9e8d6 (diff) | |
download | bcm5719-llvm-8fb6e40de81c7cb41eb28cc4d6b5d17bd738bea6.tar.gz bcm5719-llvm-8fb6e40de81c7cb41eb28cc4d6b5d17bd738bea6.zip |
[llvm-exegesis] Fix compilation on lld-x86_64-darwin13
YAMLTraits does not know how to serialize `size_t` portably. Use `int`
instead.
llvm-svn: 329176
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkResult.h')
-rw-r--r-- | llvm/tools/llvm-exegesis/lib/BenchmarkResult.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h index 6c238fd1484..e906aea8555 100644 --- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h +++ b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h @@ -38,7 +38,7 @@ struct InstructionBenchmark { AsmTemplate AsmTmpl; std::string CpuName; std::string LLVMTriple; - size_t NumRepetitions = 0; + int NumRepetitions = 0; std::vector<BenchmarkMeasure> Measurements; std::string Error; |