Skip to content

Commit 8eb31d4

Browse files
authored
[DevTSAN] Fix coverity issue of 'Rule of three' (#17563)
1 parent 7a83f21 commit 8eb31d4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

unified-runtime/source/loader/layers/sanitizer/tsan/tsan_interceptor.hpp

+12
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ struct ContextInfo {
6464
assert(Result == UR_RESULT_SUCCESS);
6565
}
6666

67+
ContextInfo(const ContextInfo &) = delete;
68+
69+
ContextInfo &operator=(const ContextInfo &) = delete;
70+
6771
void insertAllocInfo(ur_device_handle_t Device,
6872
std::shared_ptr<TsanAllocInfo> &AI);
6973
};
@@ -82,6 +86,10 @@ struct TsanRuntimeDataWrapper {
8286

8387
~TsanRuntimeDataWrapper();
8488

89+
TsanRuntimeDataWrapper(const TsanRuntimeDataWrapper &) = delete;
90+
91+
TsanRuntimeDataWrapper &operator=(const TsanRuntimeDataWrapper &) = delete;
92+
8593
TsanRuntimeData *getDevicePtr();
8694

8795
ur_result_t syncFromDevice(ur_queue_handle_t Queue);
@@ -110,6 +118,10 @@ struct LaunchInfo {
110118
Result = getContext()->urDdiTable.Device.pfnRelease(Device);
111119
assert(Result == UR_RESULT_SUCCESS);
112120
}
121+
122+
LaunchInfo(const LaunchInfo &) = delete;
123+
124+
LaunchInfo &operator=(const LaunchInfo &) = delete;
113125
};
114126

115127
class TsanInterceptor {

0 commit comments

Comments
 (0)