mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 02:48:14 +02:00
parent
a0bc256b8f
commit
b063d47aa1
@ -682,16 +682,7 @@ implementation
|
||||
objectlibrary.getjumplabel(falselabel);
|
||||
end;
|
||||
secondpass(right);
|
||||
|
||||
if cs_check_range in aktlocalswitches then
|
||||
begin
|
||||
if left.resulttype.def.deftype=arraydef then
|
||||
rangecheck_array;
|
||||
end;
|
||||
|
||||
{ if mulsize = 1, we won't have to modify the index }
|
||||
location_force_reg(exprasmlist,right.location,OS_ADDR,(mulsize = 1));
|
||||
|
||||
|
||||
if isjump then
|
||||
begin
|
||||
truelabel:=otl;
|
||||
@ -700,6 +691,16 @@ implementation
|
||||
else if (right.location.loc = LOC_JUMP) then
|
||||
internalerror(2006010801);
|
||||
|
||||
{ if mulsize = 1, we won't have to modify the index }
|
||||
location_force_reg(exprasmlist,right.location,OS_ADDR,(mulsize = 1));
|
||||
|
||||
{ only range check now, we can't range check loc_flags/loc_jump }
|
||||
if cs_check_range in aktlocalswitches then
|
||||
begin
|
||||
if left.resulttype.def.deftype=arraydef then
|
||||
rangecheck_array;
|
||||
end;
|
||||
|
||||
{ produce possible range check code: }
|
||||
if cs_check_range in aktlocalswitches then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user