We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2faf73e commit 2508d5cCopy full SHA for 2508d5c
sycl/source/detail/graph_impl.hpp
@@ -899,7 +899,7 @@ class graph_impl {
899
void addEventForNode(std::shared_ptr<graph_impl> GraphImpl,
900
std::shared_ptr<sycl::detail::event_impl> EventImpl,
901
std::shared_ptr<node_impl> NodeImpl) {
902
- if ((nullptr != EventImpl) && !(EventImpl->getCommandGraph()))
+ if (EventImpl && !(EventImpl->getCommandGraph()))
903
EventImpl->setCommandGraph(GraphImpl);
904
MEventsMap[EventImpl] = NodeImpl;
905
}
0 commit comments