[Lldb-commits] [lldb] [LLDB][NativePDB] Add PdbAstBuilder null checks (PR #176065)

Leonard Grey via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 15 08:22:53 PST 2026


================
@@ -1020,10 +1019,8 @@ VariableSP SymbolFileNativePDB::CreateGlobalVariable(PdbGlobalSymId var_id) {
   if (auto err = ts_or_err.takeError())
     return nullptr;
   auto ts = *ts_or_err;
-  if (!ts)
-    return nullptr;
-
-  ts->GetNativePDBParser()->EnsureVariable(var_id);
+  if (ts && ts->GetNativePDBParser())
+    ts->GetNativePDBParser()->EnsureVariable(var_id);
----------------
speednoisemovement wrote:

Done

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


More information about the lldb-commits mailing list