|
@@ -716,7 +716,8 @@ implementation
|
|
|
if (cs_implicit_exceptions in current_settings.moduleswitches) and
|
|
|
(pi_needs_implicit_finally in flags) and
|
|
|
{ but it's useless in init/final code of units }
|
|
|
- not(procdef.proctypeoption in [potype_unitfinalize,potype_unitinit]) then
|
|
|
+ not(procdef.proctypeoption in [potype_unitfinalize,potype_unitinit]) and
|
|
|
+ not(po_assembler in procdef.procoptions) then
|
|
|
begin
|
|
|
{ Generate special exception block only needed when
|
|
|
implicit finaly is used }
|
|
@@ -1212,6 +1213,7 @@ implementation
|
|
|
if (cs_implicit_exceptions in current_settings.moduleswitches) and
|
|
|
not(procdef.proctypeoption in [potype_unitfinalize,potype_unitinit]) and
|
|
|
(pi_needs_implicit_finally in flags) and
|
|
|
+ not(po_assembler in procdef.procoptions) and
|
|
|
not(pi_has_implicit_finally in flags) then
|
|
|
internalerror(200405231);
|
|
|
|