Browse Source

dbgllvm: skip static fields when writing struct fields

These are not part of the struct instances
Jonas Maebe 3 years ago
parent
commit
addd0e7dcf
1 changed files with 4 additions and 0 deletions
  1. 4 0
      compiler/llvm/dbgllvm.pas

+ 4 - 0
compiler/llvm/dbgllvm.pas

@@ -1174,6 +1174,10 @@ implementation
               continue;
 
             field:=tfieldvarsym(recst.symlist[i]);
+            if (sp_static in field.symoptions) or
+               (field.visibility=vis_hidden) then
+              exit;
+
             { start of a new variant part? }
             if vo_is_first_field in field.varoptions then
               begin