[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
Sat Jan 24 01:46:38 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:
Thought about this a bit more and I think you're right.
https://github.com/llvm/llvm-project/pull/166455
More information about the lldb-commits
mailing list