1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-27 10:23:41 +03:00

Avoid unnecessary copy

This commit is contained in:
Rui Ueyama 2021-03-14 03:03:17 +09:00
parent 059269d0b6
commit 2fdfc8dd85

View File

@ -119,7 +119,7 @@ static tbb::concurrent_vector<InputSection *> collect_root_set() {
}
// Mark all reachable sections
static void mark(tbb::concurrent_vector<InputSection *> roots) {
static void mark(tbb::concurrent_vector<InputSection *> &roots) {
Timer t("mark");
tbb::parallel_do(roots, [&](InputSection *isec, Feeder &feeder) {