mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-10 09:46:30 +02:00
Raise internalerror inside RemoveCurentP is called with p=hp1, because it leads to using a class instance after it has been freed
git-svn-id: trunk@47689 -
This commit is contained in:
parent
4f3a21eeec
commit
0189276a12
@ -1506,6 +1506,8 @@ Unit AoptObj;
|
||||
|
||||
procedure TAOptObj.RemoveCurrentP(var p: tai; const hp1: tai); inline;
|
||||
begin
|
||||
if (p=hp1) then
|
||||
internalerror(2020120501);
|
||||
UpdateUsedRegs(tai(p.Next));
|
||||
AsmL.Remove(p);
|
||||
p.Free;
|
||||
|
Loading…
Reference in New Issue
Block a user