mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-14 16:06:14 +02:00
* fixed overzealous removal of an assigned(t1) check in r40142 (it was for a
ttryexceptnode instead of for a ttryfinally node) git-svn-id: trunk@40189 -
This commit is contained in:
parent
a19528efa1
commit
513481ad71
@ -458,12 +458,28 @@ procedure tx64tryexceptnode.pass_generate_code;
|
||||
inc(onnodecount.value);
|
||||
hnode:=tonnode(hnode).left;
|
||||
end;
|
||||
{ add 'else' node to the filter list, too }
|
||||
if assigned(t1) then
|
||||
begin
|
||||
hlist.concat(tai_const.create_32bit(-1));
|
||||
hlist.concat(tai_const.create_rva_sym(lastonlabel));
|
||||
inc(onnodecount.value);
|
||||
end;
|
||||
{ now move filter table to permanent list all at once }
|
||||
current_procinfo.aktlocaldata.concatlist(hlist);
|
||||
hlist.free;
|
||||
end;
|
||||
|
||||
cg.a_label(current_asmdata.CurrAsmList,lastonlabel);
|
||||
if assigned(t1) then
|
||||
begin
|
||||
{ here we don't have to reset flowcontrol }
|
||||
{ the default and on flowcontrols are handled equal }
|
||||
secondpass(t1);
|
||||
cg.g_call(current_asmdata.CurrAsmList,'FPC_DONEEXCEPTION');
|
||||
if (flowcontrol*[fc_exit,fc_break,fc_continue]<>[]) then
|
||||
cg.a_jmp_always(current_asmdata.CurrAsmList,endexceptlabel);
|
||||
end;
|
||||
exceptflowcontrol:=flowcontrol;
|
||||
|
||||
if fc_exit in exceptflowcontrol then
|
||||
|
Loading…
Reference in New Issue
Block a user