[Lldb-commits] [lldb] [llvm] [lldb][NativePDB] Fix crash in debugger when PDB has bad type index value (PR #166455)

via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 23 10:33:59 PST 2026


================
@@ -1504,7 +1507,9 @@ PdbAstBuilderClang::ToCompilerDeclContext(clang::DeclContext *context) {
 }
 
 clang::Decl *PdbAstBuilderClang::FromCompilerDecl(CompilerDecl decl) {
-  return ClangUtil::GetDecl(decl);
+  if (decl.GetTypeSystem() != nullptr)
----------------
Nerixyz wrote:

I was asking because in [`ClangUtil::GetQualType`](https://github.com/llvm/llvm-project/blob/7edf4e15ffbfb0ee7bd1b34fce85a3fb9c6c4872/lldb/source/Plugins/ExpressionParser/Clang/ClangUtil.cpp#L38) we do check for the type system.

https://github.com/llvm/llvm-project/pull/166455


More information about the lldb-commits mailing list