* fixed LOC_JUMP handling for case nodes

git-svn-id: trunk@3421 -
This commit is contained in:
Jonas Maebe 2006-05-05 09:01:55 +00:00
parent 0dffd62032
commit 5afd8c5e76

View File

@ -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 }