Skip to content

Commit

Permalink
fix: change emplace() on map to insert()
Browse files Browse the repository at this point in the history
- fixes problem with some compilers

Related-To: GSD-10365, GSD-10367, GSD-10441

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
  • Loading branch information
HoppeMateusz authored and Compute-Runtime-Automation committed Dec 18, 2024
1 parent 3a6ce6d commit 1110410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/source/os_interface/linux/drm_memory_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ void DrmMemoryManager::registerSharedBoHandleAllocation(DrmAllocation *drmAlloca

auto foundHandleWrapperIt = sharedBoHandles.find(std::pair<int, uint32_t>(bo->getHandle(), rootDeviceIndex));
if (foundHandleWrapperIt == std::end(sharedBoHandles)) {
sharedBoHandles.emplace(std::make_pair(bo->getHandle(), rootDeviceIndex), bo->acquireWeakOwnershipOfBoHandle());
sharedBoHandles.insert({std::make_pair(bo->getHandle(), rootDeviceIndex), bo->acquireWeakOwnershipOfBoHandle()});
} else {
bo->markAsSharedBoHandle();
}
Expand Down

0 comments on commit 1110410

Please sign in to comment.