瀏覽代碼

symcreat: add hidden high parameters in create_procdef_alias

No longer happens automatically for pc_bareproc procdef copies
Jonas Maebe 2 年之前
父節點
當前提交
32f8dc7ef5
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compiler/symcreat.pas

+ 2 - 0
compiler/symcreat.pas

@@ -1168,6 +1168,8 @@ implementation
       result.setmangledname(newmangledname);
       result.setmangledname(newmangledname);
       { finish creating the copy }
       { finish creating the copy }
       finish_copied_procdef(result,newrealname,newparentst,newstruct);
       finish_copied_procdef(result,newrealname,newparentst,newstruct);
+      { insert hidden high parameters }
+      result.parast.SymList.ForEachCall(@insert_hidden_para,result);
       { now insert self/vmt }
       { now insert self/vmt }
       insert_self_and_vmt_para(result);
       insert_self_and_vmt_para(result);
       { and the function result }
       { and the function result }