summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-04-04 12:01:46 +0000
committerClement Courbet <courbet@google.com>2018-04-04 12:01:46 +0000
commit8fb6e40de81c7cb41eb28cc4d6b5d17bd738bea6 (patch)
tree9d037c0e5d5841177e11976715c29b39243a7369 /llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
parent96c09c5b0976464be05434d640c1bec407c9e8d6 (diff)
downloadbcm5719-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.h2
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;
OpenPOWER on IntegriCloud