|
@@ -69,6 +69,7 @@ implementation
|
|
|
var
|
|
|
hl : tasmlabel;
|
|
|
opsize : tcgsize;
|
|
|
+ seconddone : boolean;
|
|
|
begin
|
|
|
opsize:=def_cgsize(resultdef);
|
|
|
if is_boolean(resultdef) then
|
|
@@ -77,7 +78,12 @@ implementation
|
|
|
{ if it is a register variable, so we've to do }
|
|
|
{ this before the case statement }
|
|
|
if left.location.loc<>LOC_JUMP then
|
|
|
- secondpass(left);
|
|
|
+ begin
|
|
|
+ secondpass(left);
|
|
|
+ seconddone:=true;
|
|
|
+ end
|
|
|
+ else
|
|
|
+ seconddone:=false;
|
|
|
|
|
|
case left.location.loc of
|
|
|
LOC_JUMP :
|
|
@@ -86,7 +92,8 @@ implementation
|
|
|
hl:=current_procinfo.CurrTrueLabel;
|
|
|
current_procinfo.CurrTrueLabel:=current_procinfo.CurrFalseLabel;
|
|
|
current_procinfo.CurrFalseLabel:=hl;
|
|
|
- secondpass(left);
|
|
|
+ if not seconddone then
|
|
|
+ secondpass(left);
|
|
|
maketojumpbool(current_asmdata.CurrAsmList,left,lr_load_regvars);
|
|
|
hl:=current_procinfo.CurrTrueLabel;
|
|
|
current_procinfo.CurrTrueLabel:=current_procinfo.CurrFalseLabel;
|