mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 20:49:49 +02:00
* fixed LOC_JUMP handling for case nodes
git-svn-id: trunk@3421 -
This commit is contained in:
parent
0dffd62032
commit
5afd8c5e76
@ -717,7 +717,7 @@ implementation
|
||||
|
||||
{ save current current_procinfo.CurrTrueLabel and current_procinfo.CurrFalseLabel }
|
||||
isjump:=false;
|
||||
if left.location.loc=LOC_JUMP then
|
||||
if left.expectloc=LOC_JUMP then
|
||||
begin
|
||||
otl:=current_procinfo.CurrTrueLabel;
|
||||
current_asmdata.getjumplabel(current_procinfo.CurrTrueLabel);
|
||||
@ -743,7 +743,10 @@ implementation
|
||||
begin
|
||||
current_procinfo.CurrTrueLabel:=otl;
|
||||
current_procinfo.CurrFalseLabel:=ofl;
|
||||
end;
|
||||
end
|
||||
else
|
||||
if (left.location.loc=LOC_JUMP) then
|
||||
internalerror(2006050501);
|
||||
|
||||
{ we need the min_label always to choose between }
|
||||
{ cmps and subs/decs }
|
||||
|
Loading…
Reference in New Issue
Block a user