[Lldb-commits] [lldb] [lldb] Fix a crash when two diagnostics are on the same column or in … (PR #112451)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 15 16:55:08 PDT 2024
================
@@ -98,10 +94,31 @@ void RenderDiagnosticDetails(Stream &stream,
continue;
}
- auto &loc = *detail.source_location;
remaining_details.push_back(detail);
+ }
+
+ // Sort the diagnostics.
+ auto sort = [](auto &ds) {
+ std::sort(ds.begin(), ds.end(), [](auto &d1, auto &d2) {
----------------
JDevlieghere wrote:
```suggestion
llvm::sort(ds.begin(), ds.end(), [](auto &d1, auto &d2) {
```
https://github.com/llvm/llvm-project/pull/112451
More information about the lldb-commits
mailing list