diff options
| author | Kazu Hirata <kazu@google.com> | 2025-11-15 10:53:53 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-15 10:53:53 -0800 |
| commit | b1b0be201b9043c3c417a58f24eb9ced62a52638 (patch) | |
| tree | 5f9d2e20175e118e73f5e7e4dfe1390b6e7cc008 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | eb9d56cb558cd7412edc8488f331517f3bb3df30 (diff) | |
[ADT] Make DenseMapBase::moveFrom safer (NFC) (#168180)
Without this patch, DenseMapBase::moveFrom() moves buckets and leaves
the moved-from object in a zombie state. This patch teaches
moveFrom() to call kill() so that the move-from object is in a known
good state. This brings moveFrom()'s behavior in line with standard
C++ move semantics.
kill() is implemented so that it takes the fast path in the destructor
-- both destroyAll() and deallocateBuckets().
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
