Forráskód Böngészése

* ensure that the def used when calling virtual methods matches the
procdefinition (e.g. regarding the self parameter type)

git-svn-id: trunk@32419 -

Jonas Maebe 9 éve
szülő
commit
83521e7d1f
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      compiler/ncgcal.pas

+ 1 - 0
compiler/ncgcal.pas

@@ -1016,6 +1016,7 @@ implementation
                    retloc:=do_call_ref(href)
                    retloc:=do_call_ref(href)
                  else
                  else
                    begin
                    begin
+                     hlcg.g_ptrtypecast_reg(current_asmdata.CurrAsmList,vmt_entry.resultdef,cpointerdef.getreusable(procdefinition),pvreg);
                      retloc:=hlcg.a_call_reg(current_asmdata.CurrAsmList,tabstractprocdef(procdefinition),pvreg,paralocs);
                      retloc:=hlcg.a_call_reg(current_asmdata.CurrAsmList,tabstractprocdef(procdefinition),pvreg,paralocs);
                      unget_call_reg(current_asmdata.CurrAsmList,pvreg);
                      unget_call_reg(current_asmdata.CurrAsmList,pvreg);
                    end;
                    end;