* Fixed bug #17413 (and the tw17413 test) for aarch64 by adding additional check.

git-svn-id: trunk@39951 -
This commit is contained in:
yury 2018-10-16 21:16:30 +00:00
parent fbfc98a600
commit 7c94d00a4a

View File

@ -112,7 +112,9 @@ implementation
{ ... at the place we are looking for }
references_equal(tabstractnormalvarsym(tloadnode(n).symtableentry).localloc.reference,rr^.old^) and
{ its address cannot have escaped the current routine }
not(tabstractvarsym(tloadnode(n).symtableentry).addr_taken) then
not(tabstractvarsym(tloadnode(n).symtableentry).addr_taken) and
{ it is not accessed in nested procedures }
not(tabstractvarsym(tloadnode(n).symtableentry).different_scope) then
begin
{ relocate variable }
tcgloadnode(n).changereflocation(rr^.new^);