mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 02:32:51 +02:00
* fixed line information for constructor code added to new block while
generating the afterconstruction code git-svn-id: trunk@34450 -
This commit is contained in:
parent
d22b83ee73
commit
adcf07aabb
@ -743,12 +743,13 @@ implementation
|
||||
if assigned(srsym) and
|
||||
(srsym.typ=procsym) then
|
||||
begin
|
||||
current_filepos:=exitpos;
|
||||
current_filepos:=entrypos;
|
||||
constructionblock:=internalstatements(newstatement);
|
||||
{ first execute all constructor code. If no exception
|
||||
occurred then we will execute afterconstruction,
|
||||
otherwise we won't (the exception will jump over us) }
|
||||
addstatement(newstatement,tocode);
|
||||
current_filepos:=exitpos;
|
||||
{ if implicit finally node wasn't created, then exit label and
|
||||
finalization code must be handled here and placed before
|
||||
afterconstruction }
|
||||
|
Loading…
Reference in New Issue
Block a user