Skip to content

Commit 4b74df1

Browse files
committed
Address review comments
1 parent 0e74543 commit 4b74df1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/source/detail/graph_impl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,8 @@ exec_graph_impl::enqueue(const std::shared_ptr<sycl::detail::queue_impl> &Queue,
10261026
It != MExecutionEvents.end();) {
10271027
std::shared_ptr<event_impl> &Event = *It;
10281028
if (!Event->isCompleted()) {
1029-
auto &AttachedEventsList = Event->getPostCompleteEvents();
1029+
const std::vector<EventImplPtr> &AttachedEventsList =
1030+
Event->getPostCompleteEvents();
10301031
CGData.MEvents.reserve(CGData.MEvents.size() +
10311032
AttachedEventsList.size() + 1);
10321033
CGData.MEvents.push_back(Event);

0 commit comments

Comments
 (0)