Browse Source

* ensure the types of all elements emitted in all paths through
writeaccessproc() are the same, so the reuse of existing defs doesn't
result in the generation of typecasts for llvm

git-svn-id: trunk@32903 -

Jonas Maebe 9 năm trước cách đây
mục cha
commit
5aadb149ed
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      compiler/ncgrtti.pas

+ 2 - 1
compiler/ncgrtti.pas

@@ -428,7 +428,8 @@ implementation
                 if not(po_virtualmethod in tprocdef(propaccesslist.procdef).procoptions) or
                 if not(po_virtualmethod in tprocdef(propaccesslist.procdef).procoptions) or
                    is_objectpascal_helper(tprocdef(propaccesslist.procdef).struct) then
                    is_objectpascal_helper(tprocdef(propaccesslist.procdef).struct) then
                   begin
                   begin
-                    tcb.emit_procdef_const(tprocdef(propaccesslist.procdef));
+                    tcb.queue_init(codeptruinttype);
+                    tcb.queue_emit_proc(tprocdef(propaccesslist.procdef));
                     typvalue:=1;
                     typvalue:=1;
                   end
                   end
                 else
                 else