Skip to content

Commit 7d522ea

Browse files
Add explicit assignment operator & copy constructor
Necessary to fix a coverity issue
1 parent d188f5c commit 7d522ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/acl_device_binary.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ class acl_device_binary_t {
2626
public:
2727
~acl_device_binary_t() { unload_content(); }
2828

29+
acl_device_binary_t &operator=(const acl_device_binary_t &) = delete;
30+
31+
acl_device_binary_t(const acl_device_binary_t &) = delete;
32+
33+
acl_device_binary_t() = default;
34+
2935
inline void set_dev_prog(acl_device_program_info_t *dev_prog) {
3036
m_dev_prog = dev_prog;
3137
}

0 commit comments

Comments
 (0)