mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Abort execution when registering invalid sharing object
Change-Id: Ie6091eb659c423ffe5deb4a3ffe55ae0ef66797d
This commit is contained in:

committed by
sys_ocldev

parent
cf1f60a1b4
commit
eead3ec683
@ -26,6 +26,7 @@ namespace OCLRT {
|
||||
|
||||
template <typename Sharing>
|
||||
void Context::registerSharing(Sharing *sharing) {
|
||||
UNRECOVERABLE_IF(!sharing);
|
||||
this->sharingFunctions[Sharing::sharingId].reset(sharing);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user