Browse Source

* fixed typed constants, initialized with Ofs(proc) in modes TP and DELPHI as well

git-svn-id: trunk@38134 -
nickysn 7 năm trước cách đây
mục cha
commit
2019e622e1
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      compiler/i8086/n8086tcon.pas

+ 3 - 0
compiler/i8086/n8086tcon.pas

@@ -98,6 +98,9 @@ uses
              is_proc2procvar_load(Ttypeconvnode(node).left,pd)) then
           begin
             hp:=tunarynode(Ttypeconvnode(node).left).left;
+            if (hp.nodetype=typeconvn) and
+               (ttypeconvnode(hp).convtype=tc_proc_2_procvar) then
+              hp:=tunarynode(hp).left;
             if hp.nodetype=loadn then
               begin
                 srsym:=tloadnode(hp).symtableentry;