diff options
| author | OCHyams <orlando.hyams@sony.com> | 2023-04-26 10:53:57 +0100 |
|---|---|---|
| committer | OCHyams <orlando.hyams@sony.com> | 2023-04-26 11:14:51 +0100 |
| commit | b59d672ed489ddb3373db62be168bb0926c4f5f3 (patch) | |
| tree | 1f8a2967a99235975cbdb8d7aa8ce2622b8e4e79 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | baafc74ab0bf95b650a8cd9b987ce50087b72121 (diff) | |
[Assignment Tracking] Fix faulty assertion inside std::sort predicate
The vectors being sorted here shouldn't contain duplicate entries. Prior to
this patch this was checked with an assert within the `std::sort`
predicate. However, `std::sort` may compare an element against itself which
causes the assert to fire (false positive). Move the assert outside of the sort
predicate to avoid such issues.
Reviewed By: StephenTozer
Differential Revision: https://reviews.llvm.org/D149045
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
