mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 04:26:13 +02:00
Aslo check that live_end is assigned before refering to it
This commit is contained in:
parent
da0b554db1
commit
29fc94d2a6
@ -1943,7 +1943,7 @@ unit rgobj;
|
|||||||
palloc:=tai_regalloc.alloc(r,live_start)
|
palloc:=tai_regalloc.alloc(r,live_start)
|
||||||
else
|
else
|
||||||
palloc:=tai_regalloc.alloc(r,nil);
|
palloc:=tai_regalloc.alloc(r,nil);
|
||||||
if live_end.typ=ait_instruction then
|
if assigned(live_end) and (live_end.typ=ait_instruction) then
|
||||||
pdealloc:=tai_regalloc.dealloc(r,live_end)
|
pdealloc:=tai_regalloc.dealloc(r,live_end)
|
||||||
else
|
else
|
||||||
pdealloc:=tai_regalloc.dealloc(r,nil);
|
pdealloc:=tai_regalloc.dealloc(r,nil);
|
||||||
|
Loading…
Reference in New Issue
Block a user