diff --git a/lldb/source/Plugins/LanguageRuntime/Swift/LockGuarded.h b/lldb/source/Plugins/LanguageRuntime/Swift/LockGuarded.h index e44ffea048372..728d029a61310 100644 --- a/lldb/source/Plugins/LanguageRuntime/Swift/LockGuarded.h +++ b/lldb/source/Plugins/LanguageRuntime/Swift/LockGuarded.h @@ -23,6 +23,8 @@ template struct LockGuarded { : m_resource(resource), m_lock(mutex, std::adopt_lock) {} LockGuarded() = default; + LockGuarded(const LockGuarded &) = delete; + LockGuarded &operator=(const LockGuarded &) = delete; Resource *operator->() const { return m_resource; }