Files
clang-p2996/lldb/unittests/Expression/DiagnosticManagerTest.cpp
Adrian Prantl 737820e6d6 Make diagnostics API safer to use
I received a crash report in DiagnosticManager that was caused by a
nullptr diagnostic having been added. The API allows passing in a null
unique_ptr, but all the methods are written assuming that all pointers
a dereferencable. This patch makes it impossible to add a null
diagnostic.

rdar://107633615

Differential Revision: https://reviews.llvm.org/D148823
2023-04-21 08:21:56 -07:00

7.3 KiB