[all-commits] [llvm/llvm-project] 889e6a: [lldb] Fix a crash when two diagnostics are on the...

Adrian Prantl via All-commits all-commits at lists.llvm.org
Wed Oct 16 09:46:08 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 889e6ad24b6df4f8d5232d4ecbd8eb492717f1b7
      https://github.com/llvm/llvm-project/commit/889e6ad24b6df4f8d5232d4ecbd8eb492717f1b7
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M lldb/source/Utility/DiagnosticsRendering.cpp
    M lldb/unittests/Utility/DiagnosticsRenderingTest.cpp

  Log Message:
  -----------
  [lldb] Fix a crash when two diagnostics are on the same column or in … (#112451)

…reverse order

The second inner loop (only) was missing the check for offset > column.
Also this patch sorts the diagnostics before printing them.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list