Skip to content

Commit 4dd0f41

Browse files
sergey-semenovAlexeySachkov
authored andcommitted
[SYCL][NFC] Fix a null dereference Coverity hit (#15442)
1 parent 888b756 commit 4dd0f41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sycl/source/detail/scheduler/commands.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3217,6 +3217,7 @@ ur_result_t ExecCGCommand::enqueueImpQueue() {
32173217
HostTask->MHostTask->MInteropTask};
32183218

32193219
ur_bool_t NativeCommandSupport = false;
3220+
assert(MQueue && "Native command should have an associated queue");
32203221
MQueue->getPlugin()->call<UrApiKind::urDeviceGetInfo>(
32213222
detail::getSyclObjImpl(MQueue->get_device())->getHandleRef(),
32223223
UR_DEVICE_INFO_ENQUEUE_NATIVE_COMMAND_SUPPORT_EXP,

0 commit comments

Comments
 (0)