[lld] r314590 - Fix buildbots.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 30 05:19:08 PDT 2017


Author: ruiu
Date: Sat Sep 30 05:19:08 2017
New Revision: 314590

URL: http://llvm.org/viewvc/llvm-project?rev=314590&view=rev
Log:
Fix buildbots.

Modified:
    lld/trunk/ELF/SyntheticSections.cpp

Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=314590&r1=314589&r2=314590&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Sat Sep 30 05:19:08 2017
@@ -2240,7 +2240,7 @@ void MergeNoTailSection::finalizeContent
   size_t Concurrency = 1;
   if (Config->Threads)
     if (int N = std::thread::hardware_concurrency())
-      Concurrency = std::min(PowerOf2Floor(N), NumShards);
+      Concurrency = std::min<size_t>(PowerOf2Floor(N), NumShards);
 
   // Add section pieces to the builders.
   parallelForEachN(0, Concurrency, [&](size_t ThreadId) {




More information about the llvm-commits mailing list