performance: fix minor inefficiencies - leverage move semantics

Related-To: NEO-15630

Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:
Maciej Bielski
2025-10-14 13:28:18 +00:00
committed by Compute-Runtime-Automation
parent 0de2b26c7c
commit 6005284a6f
5 changed files with 13 additions and 11 deletions

View File

@@ -162,7 +162,7 @@ bool Elf<numBits>::decodeRelocations(SectionHeaderAndData<numBits> &sectionHeade
RelocationInfo relocInfo = {symbolSectionIndex, symbolIndex, targetSectionIndex, rela->addend, rela->offset, relocType, std::move(name)};
relocs.push_back(relocInfo);
relocs.push_back(std::move(relocInfo));
rela++;
}
}