From 4bc8882b89c143aba058947a8650e8a127a5dcff Mon Sep 17 00:00:00 2001 From: Alexandre Ganea Date: Fri, 27 Mar 2020 11:22:51 -0400 Subject: [PATCH] Fix build after 09158252f777c2e2f06a86b154c44abcbcf9bb74 --- llvm/tools/gold/gold-plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 383f972..6d2369f 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)) -- 2.7.4