Default copy/move constructors and assignment operators work incorrectly, leaving wrong m_sets[i].registers pointers.
Made the class movable and non-copyable (it's difficult to imagine when it needs to be copied).
Paths
| Differential D47728
Fix DynamicRegisterInfo copying/moving issue ClosedPublic Authored by tatyana-krasnukha on Jun 4 2018, 10:20 AM.
Details Summary Default copy/move constructors and assignment operators work incorrectly, leaving wrong m_sets[i].registers pointers. Made the class movable and non-copyable (it's difficult to imagine when it needs to be copied).
Diff Detail
Event TimelineComment Actions Only question is do we need the extra "struct Data"?
Comment Actions Hello Greg,
Comment Actions Get rid of additional structure. This revision is now accepted and ready to land.Jun 7 2018, 10:51 AM Closed by commit rL334282: Fix DynamicRegisterInfo copying/moving issue. (authored by tkrasnukha). · Explain WhyJun 8 2018, 4:33 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 150485 lldb/trunk/source/Plugins/Process/Utility/DynamicRegisterInfo.h
lldb/trunk/source/Plugins/Process/Utility/DynamicRegisterInfo.cpp
|