Parcourir la source

psub.pas, read_proc_body:
* reset _FAIL directly after parsing the routine

git-svn-id: trunk@33881 -

svenbarth il y a 9 ans
Parent
commit
af26a31251
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      compiler/psub.pas

+ 4 - 4
compiler/psub.pas

@@ -2006,6 +2006,10 @@ implementation
 
 
         tcgprocinfo(current_procinfo).parse_body;
         tcgprocinfo(current_procinfo).parse_body;
 
 
+        { reset _FAIL as _SELF normal }
+        if (pd.proctypeoption=potype_constructor) then
+          tokeninfo^[_FAIL].keyword:=oldfailtokenmode;
+
         { We can't support inlining for procedures that have nested
         { We can't support inlining for procedures that have nested
           procedures because the nested procedures use a fixed offset
           procedures because the nested procedures use a fixed offset
           for accessing locals in the parent procedure (PFV) }
           for accessing locals in the parent procedure (PFV) }
@@ -2036,10 +2040,6 @@ implementation
               end;
               end;
           end;
           end;
 
 
-        { reset _FAIL as _SELF normal }
-        if (pd.proctypeoption=potype_constructor) then
-          tokeninfo^[_FAIL].keyword:=oldfailtokenmode;
-
         { release procinfo }
         { release procinfo }
         if tprocinfo(current_module.procinfo)<>current_procinfo then
         if tprocinfo(current_module.procinfo)<>current_procinfo then
           internalerror(200304274);
           internalerror(200304274);