diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2022-12-01 08:59:03 +0000 |
---|---|---|
committer | Michael Buch <michaelbuch12@gmail.com> | 2022-12-02 10:52:39 +0000 |
commit | 83599000e1f4b30d93b8f4509011b9b68d722835 (patch) | |
tree | eb7fabe231ad9e4ca29cb4261cb6f5d1aa2a33a3 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | a8a376cbc996711c0d645e27a330c5e577d81757 (diff) | |
download | llvm-83599000e1f4b30d93b8f4509011b9b68d722835.zip llvm-83599000e1f4b30d93b8f4509011b9b68d722835.tar.gz llvm-83599000e1f4b30d93b8f4509011b9b68d722835.tar.bz2 |
[lldb][Module] Document ModuleList::ForEach and assert nullness
Currently all callsites already assume the pointer is non-null.
This patch just asserts this assumption.
This is practically enforced by `ModuleList::Append`
which won't add `nullptr`s to `m_modules`.
Differential Revision: https://reviews.llvm.org/D139082
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions