Procházet zdrojové kódy

* pd.owner.defowner -> pd.struct

git-svn-id: branches/jvmbackend@18483 -
Jonas Maebe před 14 roky
rodič
revize
1b401399a4
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      compiler/symcreat.pas

+ 4 - 4
compiler/symcreat.pas

@@ -230,9 +230,9 @@ implementation
       sym: tsym;
       fsym: tfieldvarsym;
     begin
-      if not(pd.owner.defowner.typ in [recorddef,objectdef]) then
+      if not(pd.struct.typ in [recorddef,objectdef]) then
         internalerror(2011032802);
-      struct:=tabstractrecorddef(pd.owner.defowner);
+      struct:=pd.struct;
       { anonymous record types must get an artificial name, so we can generate
         a typecast at the scanner level }
       if (struct.typ=recorddef) and
@@ -269,9 +269,9 @@ implementation
       sym: tsym;
       fsym: tfieldvarsym;
     begin
-      if not(pd.owner.defowner.typ in [recorddef,objectdef]) then
+      if not(pd.struct.typ in [recorddef,objectdef]) then
         internalerror(2011032810);
-      struct:=tabstractrecorddef(pd.owner.defowner);
+      struct:=pd.struct;
       { anonymous record types must get an artificial name, so we can generate
         a typecast at the scanner level }
       if (struct.typ=recorddef) and