We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1a8b76 commit 7f8b6beCopy full SHA for 7f8b6be
bolt/lib/Rewrite/DWARFRewriter.cpp
@@ -725,9 +725,7 @@ void DWARFRewriter::updateDebugInfo() {
725
for (std::vector<DWARFUnit *> &Vec : PartVec) {
726
DIEBlder.buildCompileUnits(Vec);
727
llvm::SmallVector<std::unique_ptr<DIEBuilder>, 72> DWODIEBuildersByCU;
728
- const int ThreadCount = (opts::DebugThreadCount < opts::ThreadCount)
729
- ? opts::DebugThreadCount
730
- : opts::ThreadCount;
+ const int ThreadCount = std::min(opts::DebugThreadCount, opts::ThreadCount);
731
ThreadPoolInterface &ThreadPool =
732
ParallelUtilities::getThreadPool(ThreadCount);
733
for (DWARFUnit *CU : DIEBlder.getProcessedCUs()) {
0 commit comments