diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2022-07-26 11:46:02 +0100 |
---|---|---|
committer | Michael Buch <michaelbuch12@gmail.com> | 2022-07-26 15:47:35 +0100 |
commit | 0a412b3505f42558573e0d9005d4fe7c6102d8c9 (patch) | |
tree | bf13a62756d46ad8bae792bc16fef50ba2f0063b /llvm-libgcc | |
parent | 0eb9f18520a9a46395a01f9acc9eb829827f340c (diff) | |
download | llvm-0a412b3505f42558573e0d9005d4fe7c6102d8c9.tar.gz |
[LLDB][ClangExpression] Prevent nullptr namespace map access during logging
Some codepaths lead to `namespace_map == nullptr` when we get to
`ClangASTSource::FindCompleteType`. This occurred while debugging
an lldb session that had `settings set target.import-std-module true`.
In that case, with `LLDBLog::Expressions` logging enabled, we would
dereference a `nullptr` and crash.
This commit moves the logging until after we check for `nullptr`.
**Testing**
* Fixed the specific crash I was seeing while debugging an `lldb`
session with `import-std-module` enabled.
Differential Revision: https://reviews.llvm.org/D130561
Diffstat (limited to 'llvm-libgcc')
0 files changed, 0 insertions, 0 deletions