File tree Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,13 @@ class __SYCL_EXPORT tls_code_loc_t {
134134 // / @brief Iniitializes TLS with CodeLoc if a TLS entry not present
135135 // / @param CodeLoc The code location information to set up the TLS slot with.
136136 tls_code_loc_t (const detail::code_location &CodeLoc);
137+
138+ #ifdef __INTEL_PREVIEW_BREAKING_CHANGES
139+ // Used to maintain global state (GCodeLocTLS), so we do not want to copy
140+ tls_code_loc_t (const tls_code_loc_t &) = delete;
141+ tls_code_loc_t &operator =(const tls_code_loc_t &) = delete ;
142+ #endif // __INTEL_PREVIEW_BREAKING_CHANGES
143+
137144 // / If the code location is set up by this instance, reset it.
138145 ~tls_code_loc_t ();
139146 // / @brief Query the information in the TLS slot
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ template <typename T> struct TempAssignGuard {
4545 TempAssignGuard (T &fld, T tempVal) : field(fld), restoreValue(fld) {
4646 field = tempVal;
4747 }
48+ TempAssignGuard (const TempAssignGuard<T> &) = delete ;
49+ TempAssignGuard operator =(const TempAssignGuard<T> &) = delete ;
4850 ~TempAssignGuard () { field = restoreValue; }
4951};
5052
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ namespace experimental {
4343class pipe_base {
4444
4545protected:
46- pipe_base ();
47- ~pipe_base ();
46+ pipe_base () = default ;
47+ ~pipe_base () = default ;
4848
4949 __SYCL_EXPORT static std::string get_pipe_name (const void *HostPipePtr);
5050 __SYCL_EXPORT static bool wait_non_blocking (const event &E);
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ class image_mem_impl {
3939 const context &syclContext);
4040 __SYCL_EXPORT ~image_mem_impl ();
4141
42+ image_mem_impl (const image_mem_impl &) = delete ;
43+ image_mem_impl &operator =(const image_mem_impl &) = delete ;
44+
4245 raw_handle_type get_handle () const { return handle; }
4346 const image_descriptor &get_descriptor () const { return descriptor; }
4447 sycl::device get_device () const { return syclDevice; }
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class barrier {
3333 barrier (barrier &&other) noexcept = delete ;
3434 barrier &operator =(const barrier &other) = delete ;
3535 barrier &operator =(barrier &&other) noexcept = delete ;
36+ ~barrier () = default ;
3637
3738 void initialize (uint32_t expected_count) {
3839#ifdef __SYCL_DEVICE_ONLY__
You can’t perform that action at this time.
0 commit comments