diff options
author | Pavel Kosov <kpdev42@gmail.com> | 2023-08-16 11:04:46 +0300 |
---|---|---|
committer | Pavel Kosov <kpdev42@gmail.com> | 2023-08-16 11:10:00 +0300 |
commit | 83695d45d62121ab306d0dc108b549d9056a2f28 (patch) | |
tree | cdeea086e3d2a62d785e346d64bf0851bef11479 /clang/lib/Parse/ParseDecl.cpp | |
parent | 7e2f1ae7e0ebc7e71ffaa865175aef27fae3b034 (diff) | |
download | llvm-83695d45d62121ab306d0dc108b549d9056a2f28.zip llvm-83695d45d62121ab306d0dc108b549d9056a2f28.tar.gz llvm-83695d45d62121ab306d0dc108b549d9056a2f28.tar.bz2 |
[lldb][gui] Update TreeItem children's m_parent on move
Before this patch, any time TreeItem is copied in Resize method, its
parent is not updated, which can cause crashes when, for example, thread
window with multiple hierarchy levels is updated. Makes TreeItem
move-only, removes TreeItem's m_delegate extra self-assignment by making
it a pointer, adds code to fix up children's parent on move constructor
and operator=
Patch prepared by NH5pml30
~~~
Huawei RRI, OS Lab
Reviewed By: clayborg
Differential Revision: https://reviews.llvm.org/D157960
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
0 files changed, 0 insertions, 0 deletions