Skip to content

Commit 7f8b6be

Browse files
committed
Updates
1 parent e1a8b76 commit 7f8b6be

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bolt/lib/Rewrite/DWARFRewriter.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -725,9 +725,7 @@ void DWARFRewriter::updateDebugInfo() {
725725
for (std::vector<DWARFUnit *> &Vec : PartVec) {
726726
DIEBlder.buildCompileUnits(Vec);
727727
llvm::SmallVector<std::unique_ptr<DIEBuilder>, 72> DWODIEBuildersByCU;
728-
const int ThreadCount = (opts::DebugThreadCount < opts::ThreadCount)
729-
? opts::DebugThreadCount
730-
: opts::ThreadCount;
728+
const int ThreadCount = std::min(opts::DebugThreadCount, opts::ThreadCount);
731729
ThreadPoolInterface &ThreadPool =
732730
ParallelUtilities::getThreadPool(ThreadCount);
733731
for (DWARFUnit *CU : DIEBlder.getProcessedCUs()) {

0 commit comments

Comments
 (0)