Skip to content

Commit 2b9a534

Browse files
[SYCL] Do not set secondary queue when one is not passed (#18752)
In 3a5ee6e secondary queue was set by mistake, it must be not for this constructor.
1 parent 0defb5e commit 2b9a534

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/source/handler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ fill_copy_args(detail::handler_impl *impl,
316316

317317
handler::handler(const std::shared_ptr<detail::queue_impl> &Queue,
318318
bool CallerNeedsEvent)
319-
: MImplOwner(std::make_shared<detail::handler_impl>(Queue.get(),
320-
CallerNeedsEvent)),
319+
: MImplOwner(
320+
std::make_shared<detail::handler_impl>(nullptr, CallerNeedsEvent)),
321321
impl(MImplOwner.get()), MQueue(Queue) {}
322322

323323
handler::handler(detail::handler_impl *HandlerImpl,

0 commit comments

Comments
 (0)