[llvm] 4bc8882 - Fix build after 09158252f777c2e2f06a86b154c44abcbcf9bb74

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 27 08:23:22 PDT 2020


Author: Alexandre Ganea
Date: 2020-03-27T11:23:11-04:00
New Revision: 4bc8882b89c143aba058947a8650e8a127a5dcff

URL: https://github.com/llvm/llvm-project/commit/4bc8882b89c143aba058947a8650e8a127a5dcff
DIFF: https://github.com/llvm/llvm-project/commit/4bc8882b89c143aba058947a8650e8a127a5dcff.diff

LOG: Fix build after 09158252f777c2e2f06a86b154c44abcbcf9bb74

Added: 
    

Modified: 
    llvm/tools/gold/gold-plugin.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index 383f972b8636..6d2369f52c42 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -274,7 +274,7 @@ namespace options {
       StringRef Num(opt_ + 5);
       if (!get_threadpool_strategy(Num))
         message(LDPL_FATAL, "Invalid parallelism level: %s", Num.data());
-      Parallelism = Num;
+      Parallelism = Num.str();
     } else if (opt.startswith("lto-partitions=")) {
       if (opt.substr(strlen("lto-partitions="))
               .getAsInteger(10, ParallelCodeGenParallelismLevel))


        


More information about the llvm-commits mailing list