From b6327e86a377db3f306c96bb43d52ec7db6ba8ef Mon Sep 17 00:00:00 2001 From: Sergey Semenov Date: Thu, 19 Sep 2024 06:20:38 -0700 Subject: [PATCH] [SYCL][NFC] Fix a null dereference Coverity hit (#15442) --- sycl/source/detail/scheduler/commands.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sycl/source/detail/scheduler/commands.cpp b/sycl/source/detail/scheduler/commands.cpp index 6d08ce78d543a..5174fc966e905 100644 --- a/sycl/source/detail/scheduler/commands.cpp +++ b/sycl/source/detail/scheduler/commands.cpp @@ -3192,6 +3192,7 @@ ur_result_t ExecCGCommand::enqueueImpQueue() { HostTask->MHostTask->MInteropTask}; ur_bool_t NativeCommandSupport = false; + assert(MQueue && "Native command should have an associated queue"); MQueue->getPlugin()->call( detail::getSyclObjImpl(MQueue->get_device())->getHandleRef(), UR_DEVICE_INFO_ENQUEUE_NATIVE_COMMAND_SUPPORT_EXP,