Skip to content

Commit b6327e8

Browse files
[SYCL][NFC] Fix a null dereference Coverity hit (#15442)
1 parent 9c3998c commit b6327e8

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
@@ -3192,6 +3192,7 @@ ur_result_t ExecCGCommand::enqueueImpQueue() {
31923192
HostTask->MHostTask->MInteropTask};
31933193

31943194
ur_bool_t NativeCommandSupport = false;
3195+
assert(MQueue && "Native command should have an associated queue");
31953196
MQueue->getPlugin()->call<UrApiKind::urDeviceGetInfo>(
31963197
detail::getSyclObjImpl(MQueue->get_device())->getHandleRef(),
31973198
UR_DEVICE_INFO_ENQUEUE_NATIVE_COMMAND_SUPPORT_EXP,

0 commit comments

Comments
 (0)