浏览代码

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

git-svn-id: trunk@38134 -
nickysn 7 年之前
父节点
当前提交
2019e622e1
共有 1 个文件被更改,包括 3 次插入0 次删除
  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;