Skip to content

Commit 81cd238

Browse files
Skip handler::addAccessorReq().
1 parent 28711a7 commit 81cd238

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/source/handler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2056,6 +2056,7 @@ void handler::SetHostTask(std::function<void(interop_handle)> &&Func) {
20562056
}
20572057

20582058
void handler::addAccessorReq(detail::AccessorImplPtr Accessor) {
2059+
#if 0
20592060
// Constructor of accessors add them to MRequirements and MAccStorage
20602061
// of the associated handler, so do not add duplicates if use same
20612062
// handler as during construction.
@@ -2068,6 +2069,7 @@ void handler::addAccessorReq(detail::AccessorImplPtr Accessor) {
20682069
impl->CGData.MRequirements.push_back(Accessor.get());
20692070
// Store copy of the accessor.
20702071
impl->CGData.MAccStorage.push_back(std::move(Accessor));
2072+
#endif
20712073
}
20722074

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

0 commit comments

Comments
 (0)