Skip to content

Commit 7fabad1

Browse files
committed
extra assert
1 parent 13481cf commit 7fabad1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/source/detail/queue_impl.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ class queue_impl : public std::enable_shared_from_this<queue_impl> {
750750
MNoLastEventMode.store(false, std::memory_order_relaxed);
751751
}
752752

753+
assert(!Event || !Event->isDiscarded());
754+
753755
return Event;
754756
}
755757

0 commit comments

Comments
 (0)