Skip to content

Commit f69b351

Browse files
committed
[lldb] Delete copy constructor to avoid accidentally holding a lock (NFC)
1 parent 027f02d commit f69b351

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/LockGuarded.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ template <typename Resource> struct LockGuarded {
2323
: m_resource(resource), m_lock(mutex, std::adopt_lock) {}
2424

2525
LockGuarded() = default;
26+
LockGuarded(const LockGuarded &) = delete;
2627

2728
Resource *operator->() const { return m_resource; }
2829

0 commit comments

Comments
 (0)