Skip to content

Commit 6a8da97

Browse files
Mark handler::addAccessorReq() as to be removed.
1 parent 0fa3f45 commit 6a8da97

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

sycl/source/handler.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,8 +2055,13 @@ void handler::SetHostTask(std::function<void(interop_handle)> &&Func) {
20552055
setType(detail::CGType::CodeplayHostTask);
20562056
}
20572057

2058-
void handler::addAccessorReq(detail::AccessorImplPtr) {
2059-
assert(false && "The function must not be used.");
2058+
// TODO: This function is not used anymore, remove it in the next
2059+
// ABI-breaking window.
2060+
void handler::addAccessorReq(detail::AccessorImplPtr Accessor) {
2061+
// Add accessor to the list of requirements.
2062+
impl->CGData.MRequirements.push_back(Accessor.get());
2063+
// Store copy of the accessor.
2064+
impl->CGData.MAccStorage.push_back(std::move(Accessor));
20602065
}
20612066

20622067
void handler::addLifetimeSharedPtrStorage(std::shared_ptr<const void> SPtr) {

0 commit comments

Comments
 (0)