diff --git a/level_zero/core/source/cmdqueue/cmdqueue_hw.inl b/level_zero/core/source/cmdqueue/cmdqueue_hw.inl index 5cf105cdc9..cfa86ca3c9 100644 --- a/level_zero/core/source/cmdqueue/cmdqueue_hw.inl +++ b/level_zero/core/source/cmdqueue/cmdqueue_hw.inl @@ -368,7 +368,7 @@ ze_result_t CommandQueueHw::executeCommandLists( for (auto i = 0u; i < numCommandLists; ++i) { auto commandList = CommandList::fromHandle(phCommandLists[i]); - auto cmdBufferAllocations = commandList->commandContainer.getCmdBufferAllocations(); + auto &cmdBufferAllocations = commandList->commandContainer.getCmdBufferAllocations(); auto cmdBufferCount = cmdBufferAllocations.size(); auto commandListPreemption = commandList->getCommandListPreemptionMode();