================
@@ -1125,6 +1125,9 @@ SymbolFileNativePDB::CreateConstantSymbol(PdbGlobalSymId 
var_id,
   TpiStream &tpi = m_index->tpi();
   ConstantSym constant(cvs.kind());
 
+  if (cvs.kind() != S_CONSTANT)
+    return nullptr;
----------------
Nerixyz wrote:

Thought about this as well, but I decided against it. Although I only noticed 
this for the IPI/TPI records, incorrect debug info is often an artifact of 
incremental linking. I think the warnings would confuse the user more than 
they'd help.
That said, this is a good candidate to report in a heath check command like 
what Jonas proposed 
[here](https://discourse.llvm.org/t/rfc-a-health-check-for-lldb/91208).

https://github.com/llvm/llvm-project/pull/215847
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to