diff --git a/llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp b/llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp index 6d9e3319db7e5..23e618adeaeb4 100644 --- a/llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp +++ b/llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp @@ -891,10 +891,9 @@ void DWARFLinkerImpl::printStatistic() { CU->tryGetSectionDescriptor(DebugSectionKind::DebugInfo)) AllDebugInfoSectionsSize += (*DebugInfo)->getContents().size(); - SizeByObject[Context->InputDWARFFile.FileName].Input = - Context->OriginalDebugInfoSize; - SizeByObject[Context->InputDWARFFile.FileName].Output = - AllDebugInfoSectionsSize; + auto &Size = SizeByObject[Context->InputDWARFFile.FileName]; + Size.Input = Context->OriginalDebugInfoSize; + Size.Output = AllDebugInfoSectionsSize; } // Create a vector sorted in descending order by output size.