[PATCH] D51677: [benchmark] Fix 32-bit build failure

Kirill Bobyrev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 5 07:17:00 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL341469: [benchmark] Fix 32-bit build failure (authored by omtcyfz, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D51677?vs=164034&id=164036#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D51677

Files:
  llvm/trunk/utils/benchmark/README.LLVM
  llvm/trunk/utils/benchmark/src/sysinfo.cc


Index: llvm/trunk/utils/benchmark/README.LLVM
===================================================================
--- llvm/trunk/utils/benchmark/README.LLVM
+++ llvm/trunk/utils/benchmark/README.LLVM
@@ -13,3 +13,5 @@
   is applied on top of the v1.4.1 to silence compiler warnings
 * https://github.com/google/benchmark/commit/505be96ab23056580a3a2315abba048f4428b04e
   is applied to comply with the LLVM's required CMake version
+* https://github.com/google/benchmark/commit/f0901417c89d123474e6b91365029cfe32cf89dc
+  is applied to fix 32-bit build failure on macOS
Index: llvm/trunk/utils/benchmark/src/sysinfo.cc
===================================================================
--- llvm/trunk/utils/benchmark/src/sysinfo.cc
+++ llvm/trunk/utils/benchmark/src/sysinfo.cc
@@ -288,7 +288,7 @@
     std::string name;
     std::string type;
     int level;
-    size_t num_sharing;
+    uint64_t num_sharing;
   } Cases[] = {{"hw.l1dcachesize", "Data", 1, CacheCounts[1]},
                {"hw.l1icachesize", "Instruction", 1, CacheCounts[1]},
                {"hw.l2cachesize", "Unified", 2, CacheCounts[2]},


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51677.164036.patch
Type: text/x-patch
Size: 1114 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180905/fe724d1c/attachment.bin>


More information about the llvm-commits mailing list