From 105afff4cde3c29d5025b3e85704a707e6fa3e13 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 --- tools/gold/gold-plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index 383f972b863..6d2369f52c4 100644 --- a/tools/gold/gold-plugin.cpp +++ b/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))