Fix build after 09158252f777c2e2f06a86b154c44abcbcf9bb74
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Fri, 27 Mar 2020 15:22:51 +0000 (11:22 -0400)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Fri, 27 Mar 2020 15:23:11 +0000 (11:23 -0400)
llvm/tools/gold/gold-plugin.cpp

index 383f972..6d2369f 100644 (file)
@@ -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))