[llvm] r329176 - [llvm-exegesis] Fix compilation on lld-x86_64-darwin13

Clement Courbet via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 4 05:01:46 PDT 2018


Author: courbet
Date: Wed Apr  4 05:01:46 2018
New Revision: 329176

URL: http://llvm.org/viewvc/llvm-project?rev=329176&view=rev
Log:
[llvm-exegesis] Fix compilation on lld-x86_64-darwin13

YAMLTraits does not know how to serialize `size_t` portably. Use `int`
instead.

Modified:
    llvm/trunk/tools/llvm-exegesis/lib/BenchmarkResult.h

Modified: llvm/trunk/tools/llvm-exegesis/lib/BenchmarkResult.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/BenchmarkResult.h?rev=329176&r1=329175&r2=329176&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/BenchmarkResult.h (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/BenchmarkResult.h Wed Apr  4 05:01:46 2018
@@ -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;
 




More information about the llvm-commits mailing list