mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 08:19:27 +02:00
* fixed TAOptBase.SkipEntryExitMarker() not initialising out parameter in
all cases (patch by J. Gareth Moreton, mantis #36372) git-svn-id: trunk@43843 -
This commit is contained in:
parent
37327af58b
commit
ebd674d40e
@ -266,9 +266,9 @@ unit aoptbase;
|
|||||||
class function TAOptBase.SkipEntryExitMarker(current: tai; out next: tai): boolean;
|
class function TAOptBase.SkipEntryExitMarker(current: tai; out next: tai): boolean;
|
||||||
begin
|
begin
|
||||||
result:=true;
|
result:=true;
|
||||||
|
next:=current;
|
||||||
if current.typ<>ait_marker then
|
if current.typ<>ait_marker then
|
||||||
exit;
|
exit;
|
||||||
next:=current;
|
|
||||||
while GetNextInstruction(next,next) do
|
while GetNextInstruction(next,next) do
|
||||||
begin
|
begin
|
||||||
if (next.typ<>ait_marker) or not(tai_marker(next).Kind in [mark_Position,mark_BlockStart]) then
|
if (next.typ<>ait_marker) or not(tai_marker(next).Kind in [mark_Position,mark_BlockStart]) then
|
||||||
|
Loading…
Reference in New Issue
Block a user