浏览代码

dbgllvm: skip static fields when writing struct fields

These are not part of the struct instances
Jonas Maebe 3 年之前
父节点
当前提交
addd0e7dcf
共有 1 个文件被更改,包括 4 次插入0 次删除
  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