Skip to content

Commit 4bc8882

Browse files
committed
Fix build after 0915825
1 parent cd7f975 commit 4bc8882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/gold/gold-plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ namespace options {
274274
StringRef Num(opt_ + 5);
275275
if (!get_threadpool_strategy(Num))
276276
message(LDPL_FATAL, "Invalid parallelism level: %s", Num.data());
277-
Parallelism = Num;
277+
Parallelism = Num.str();
278278
} else if (opt.startswith("lto-partitions=")) {
279279
if (opt.substr(strlen("lto-partitions="))
280280
.getAsInteger(10, ParallelCodeGenParallelismLevel))

0 commit comments

Comments
 (0)