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 3e98d2b commit b77c713Copy full SHA for b77c713
lld/include/lld/Common/BPSectionOrdererBase.inc
@@ -319,7 +319,7 @@ auto BPOrderer<D>::computeOrder(
319
for (auto dupSecIdx : It->getSecond()) {
320
const auto *dupIsec = sections[dupSecIdx];
321
if (orderedSections.insert(dupIsec)) {
322
- duplicateCodeSize += D::getSize(*isec);
+ duplicateCodeSize += D::getSize(*dupIsec);
323
++numDuplicateCodeSections;
324
}
325
@@ -337,7 +337,7 @@ auto BPOrderer<D>::computeOrder(
337
338
339
340
- duplicateDataSize += D::getSize(*isec);
+ duplicateDataSize += D::getSize(*dupIsec);
341
++numDuplicateDataSections;
342
343
0 commit comments