瀏覽代碼

* automatically call calcparas adter creating a procvardef from a procvdef,
so it doesn't have to be done explicitly anymore afterwards

git-svn-id: branches/hlcgllvm@28473 -

Jonas Maebe 11 年之前
父節點
當前提交
6f01bb56d6
共有 2 個文件被更改,包括 5 次插入3 次删除
  1. 0 2
      compiler/ncnv.pas
  2. 5 1
      compiler/symdef.pas

+ 0 - 2
compiler/ncnv.pas

@@ -2014,8 +2014,6 @@ implementation
               (not(m_nested_procvars in current_settings.modeswitches) or
                not is_nested_pd(tprocvardef(resultdef))) then
              include(tprocvardef(resultdef).procoptions,po_addressonly);
-           { calculate parameter list & order }
-           tprocvardef(resultdef).calcparas;
          end;
       end;
 

+ 5 - 1
compiler/symdef.pas

@@ -5249,7 +5249,11 @@ implementation
       begin
         result:=inherited getcopyas(newtyp,copytyp);
         if newtyp=procvardef then
-          exit;
+          begin
+            { create new paralist }
+            tprocvardef(result).calcparas;
+            exit;
+          end;
         { don't copy mangled name, can be different }
         tprocdef(result).messageinf:=messageinf;
         tprocdef(result).dispid:=dispid;