* do not store references to dyn. arrays

git-svn-id: trunk@26741 -
This commit is contained in:
florian 2014-02-09 08:41:51 +00:00
parent 3e4198ea45
commit 25fc10b556

View File

@ -201,7 +201,7 @@ unit optcse;
one instruction on every platform except i8086/i386
so consider in this case loading the address of the data
}
(((n.resultdef.typ in [arraydef,recorddef]) or is_object(n.resultdef)) and
(((n.resultdef.typ in [arraydef,recorddef]) or is_object(n.resultdef)) and not(is_dynamic_array(n.resultdef)) and
(n.nodetype=loadn) and
(tloadnode(n).symtableentry.typ=staticvarsym)
)