Skip to content

Commit 44ae82a

Browse files
committed
delete copy constructor for tls_code_loc_t
1 parent 570661a commit 44ae82a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sycl/include/sycl/detail/common.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,12 @@ class __SYCL_EXPORT tls_code_loc_t {
131131
/// @details If a previous populated TLS entry exists, this constructor will
132132
/// capture the informationa and allow you to query the information later.
133133
tls_code_loc_t();
134-
tls_code_loc_t(const tls_code_loc_t &TLSCodeLoc) = default;
135-
tls_code_loc_t &operator=(const tls_code_loc_t &TLSCodeLoc) = default;
136134
/// @brief Iniitializes TLS with CodeLoc if a TLS entry not present
137135
/// @param CodeLoc The code location information to set up the TLS slot with.
138136
tls_code_loc_t(const detail::code_location &CodeLoc);
137+
// Used to maintain global state, so we do not want to copy
138+
tls_code_loc_t(const tls_code_loc_t &) = delete;
139+
tls_code_loc_t &operator=(const tls_code_loc_t &) = delete;
139140
/// If the code location is set up by this instance, reset it.
140141
~tls_code_loc_t();
141142
/// @brief Query the information in the TLS slot

0 commit comments

Comments
 (0)