Skip to content

Commit

Permalink
Simplify check
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Tracy <ben.tracy@codeplay.com>
  • Loading branch information
julianmi and Bensuo authored Apr 17, 2024
1 parent 2faf73e commit 2508d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sycl/source/detail/graph_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ class graph_impl {
void addEventForNode(std::shared_ptr<graph_impl> GraphImpl,
std::shared_ptr<sycl::detail::event_impl> EventImpl,
std::shared_ptr<node_impl> NodeImpl) {
if ((nullptr != EventImpl) && !(EventImpl->getCommandGraph()))
if (EventImpl && !(EventImpl->getCommandGraph()))
EventImpl->setCommandGraph(GraphImpl);
MEventsMap[EventImpl] = NodeImpl;
}
Expand Down

0 comments on commit 2508d5c

Please sign in to comment.