Explorar el Código

* fixed disabling of inlining procedures/functions with nested
procedures/functions

git-svn-id: trunk@9232 -

Jonas Maebe hace 17 años
padre
commit
9f705776c9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      compiler/psub.pas

+ 1 - 1
compiler/psub.pas

@@ -1466,7 +1466,7 @@ implementation
                   begin
                   begin
                     Message1(parser_w_not_supported_for_inline,'nested procedures');
                     Message1(parser_w_not_supported_for_inline,'nested procedures');
                     Message(parser_w_inlining_disabled);
                     Message(parser_w_inlining_disabled);
-                    current_procinfo.procdef.proccalloption:=pocall_default;
+                    exclude(current_procinfo.procdef.procoptions,po_inline);
                   end;
                   end;
               end;
               end;
             if not(df_generic in current_procinfo.procdef.defoptions) then
             if not(df_generic in current_procinfo.procdef.defoptions) then