mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-06 23:01:56 +01:00
* since we only build the deref for tprocdef.localst when we're
going to write it to the ppu since r26083, also only deref it
if that's the case (mantis #25814)
git-svn-id: trunk@26956 -
This commit is contained in:
parent
4f1207f603
commit
ffac2feb59
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -13835,6 +13835,7 @@ tests/webtbs/tw25598.pp svneol=native#text/plain
|
|||||||
tests/webtbs/tw25603.pp svneol=native#text/pascal
|
tests/webtbs/tw25603.pp svneol=native#text/pascal
|
||||||
tests/webtbs/tw2561.pp svneol=native#text/plain
|
tests/webtbs/tw2561.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw25685.pp svneol=native#text/pascal
|
tests/webtbs/tw25685.pp svneol=native#text/pascal
|
||||||
|
tests/webtbs/tw25814.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw2588.pp svneol=native#text/plain
|
tests/webtbs/tw2588.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw2589.pp svneol=native#text/plain
|
tests/webtbs/tw2589.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw2594.pp svneol=native#text/plain
|
tests/webtbs/tw2594.pp svneol=native#text/plain
|
||||||
@ -14611,6 +14612,7 @@ tests/webtbs/uw25059.test.pp svneol=native#text/pascal
|
|||||||
tests/webtbs/uw25059.withdot.pp svneol=native#text/pascal
|
tests/webtbs/uw25059.withdot.pp svneol=native#text/pascal
|
||||||
tests/webtbs/uw25132.pp svneol=native#text/pascal
|
tests/webtbs/uw25132.pp svneol=native#text/pascal
|
||||||
tests/webtbs/uw25598.pp svneol=native#text/plain
|
tests/webtbs/uw25598.pp svneol=native#text/plain
|
||||||
|
tests/webtbs/uw25814.pp svneol=native#text/plain
|
||||||
tests/webtbs/uw2706a.pp svneol=native#text/plain
|
tests/webtbs/uw2706a.pp svneol=native#text/plain
|
||||||
tests/webtbs/uw2706b.pp svneol=native#text/plain
|
tests/webtbs/uw2706b.pp svneol=native#text/plain
|
||||||
tests/webtbs/uw2731.pp svneol=native#text/plain
|
tests/webtbs/uw2731.pp svneol=native#text/plain
|
||||||
|
|||||||
@ -5215,6 +5215,9 @@ implementation
|
|||||||
if assigned(inlininginfo) then
|
if assigned(inlininginfo) then
|
||||||
include(procoptions,po_has_inlininginfo);
|
include(procoptions,po_has_inlininginfo);
|
||||||
|
|
||||||
|
{ Inline }
|
||||||
|
if (po_has_inlininginfo in procoptions) then
|
||||||
|
begin
|
||||||
{ Locals }
|
{ Locals }
|
||||||
if assigned(localst) then
|
if assigned(localst) then
|
||||||
begin
|
begin
|
||||||
@ -5222,9 +5225,6 @@ implementation
|
|||||||
tlocalsymtable(localst).derefimpl;
|
tlocalsymtable(localst).derefimpl;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ Inline }
|
|
||||||
if (po_has_inlininginfo in procoptions) then
|
|
||||||
begin
|
|
||||||
inlininginfo^.code.derefimpl;
|
inlininginfo^.code.derefimpl;
|
||||||
{ funcretsym, this is always located in the localst }
|
{ funcretsym, this is always located in the localst }
|
||||||
funcretsym:=tsym(funcretsymderef.resolve);
|
funcretsym:=tsym(funcretsymderef.resolve);
|
||||||
|
|||||||
25
tests/webtbs/tw25814.pp
Normal file
25
tests/webtbs/tw25814.pp
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{ %norun }
|
||||||
|
{ %recompile=-dchangeuses }
|
||||||
|
|
||||||
|
unit tw25814;
|
||||||
|
|
||||||
|
{$mode delphi}
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses {$ifdef changeuses}sysutils,{$endif} classes, uw25814;
|
||||||
|
|
||||||
|
type
|
||||||
|
test = class
|
||||||
|
function xyz(b: string): string;
|
||||||
|
end;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
function test.xyz(b: string): string;
|
||||||
|
begin
|
||||||
|
result:='';
|
||||||
|
end;
|
||||||
|
|
||||||
|
end.
|
||||||
|
|
||||||
12
tests/webtbs/uw25814.pp
Normal file
12
tests/webtbs/uw25814.pp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
unit uw25814;
|
||||||
|
|
||||||
|
{$mode delphi}
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
uses tw25814;
|
||||||
|
|
||||||
|
end.
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user