mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
refactor: use reference in for-range loops
Related-To: NEO-9038 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6eae5db63e
commit
95eb5df978
@@ -1767,7 +1767,7 @@ ze_result_t DebugSessionLinux::getElfOffset(const zet_debug_memory_space_desc_t
|
||||
if (elfMap.size() > 0) {
|
||||
uint64_t baseVa;
|
||||
uint64_t ceilVa;
|
||||
for (auto elf : elfMap) {
|
||||
for (auto &elf : elfMap) {
|
||||
baseVa = elf.first;
|
||||
ceilVa = elf.first + clientHandleToConnection[clientHandle]->uuidMap[elf.second].dataSize;
|
||||
if (accessVA >= baseVa && accessVA < ceilVa) {
|
||||
|
||||
Reference in New Issue
Block a user