Browse Source

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

git-svn-id: trunk@33881 -

svenbarth 9 năm trước cách đây
mục cha
commit
af26a31251
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      compiler/psub.pas

+ 4 - 4
compiler/psub.pas

@@ -2006,6 +2006,10 @@ implementation
 
         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
           procedures because the nested procedures use a fixed offset
           for accessing locals in the parent procedure (PFV) }
@@ -2036,10 +2040,6 @@ implementation
               end;
           end;
 
-        { reset _FAIL as _SELF normal }
-        if (pd.proctypeoption=potype_constructor) then
-          tokeninfo^[_FAIL].keyword:=oldfailtokenmode;
-
         { release procinfo }
         if tprocinfo(current_module.procinfo)<>current_procinfo then
           internalerror(200304274);