mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 00:03:14 +08:00
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:
committed by
Compute-Runtime-Automation
parent
0de2b26c7c
commit
6005284a6f
@@ -162,7 +162,7 @@ bool Elf<numBits>::decodeRelocations(SectionHeaderAndData<numBits> §ionHeade
|
||||
|
||||
RelocationInfo relocInfo = {symbolSectionIndex, symbolIndex, targetSectionIndex, rela->addend, rela->offset, relocType, std::move(name)};
|
||||
|
||||
relocs.push_back(relocInfo);
|
||||
relocs.push_back(std::move(relocInfo));
|
||||
rela++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user