Ver código fonte

* create init rtti for fpc_copy instead of full rtti

git-svn-id: trunk@7714 -
florian 18 anos atrás
pai
commit
c1640b078b
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      compiler/ncgld.pas
  2. 1 1
      compiler/nld.pas

+ 1 - 1
compiler/ncgld.pas

@@ -640,7 +640,7 @@ implementation
               internalerror(200204249);
               internalerror(200204249);
           end
           end
        { try to reuse memory locations instead of copying }
        { try to reuse memory locations instead of copying }
-           { copy to a memory location ... }
+       { copy to a memory location ... }
         else if (right.location.loc = LOC_REFERENCE) and
         else if (right.location.loc = LOC_REFERENCE) and
            maybechangetemp(current_asmdata.CurrAsmList,left,right.location.reference) then
            maybechangetemp(current_asmdata.CurrAsmList,left,right.location.reference) then
           begin
           begin

+ 1 - 1
compiler/nld.pas

@@ -703,7 +703,7 @@ implementation
            (left.resultdef.typ in [arraydef,objectdef,recorddef]) then
            (left.resultdef.typ in [arraydef,objectdef,recorddef]) then
          begin
          begin
            hp:=ccallparanode.create(caddrnode.create_internal(
            hp:=ccallparanode.create(caddrnode.create_internal(
-                  crttinode.create(tstoreddef(left.resultdef),fullrtti,rdt_normal)),
+                  crttinode.create(tstoreddef(left.resultdef),initrtti,rdt_normal)),
                ccallparanode.create(ctypeconvnode.create_internal(
                ccallparanode.create(ctypeconvnode.create_internal(
                  caddrnode.create_internal(left),voidpointertype),
                  caddrnode.create_internal(left),voidpointertype),
                ccallparanode.create(ctypeconvnode.create_internal(
                ccallparanode.create(ctypeconvnode.create_internal(