* append optimization also for constant strings

git-svn-id: trunk@1950 -
This commit is contained in:
peter 2005-12-14 17:23:50 +00:00
parent 198aa2e72a
commit 24d972c012

View File

@ -521,9 +521,10 @@ implementation
{ opportunity quite difficult to detect (JM) }
resulttypepass(tbinarynode(right).left);
resulttypepass(tbinarynode(right).right);
if (is_char(tbinarynode(right).right.resulttype.def) or
if (tbinarynode(right).right.nodetype=stringconstn) or
is_char(tbinarynode(right).right.resulttype.def) or
is_shortstring(tbinarynode(right).right.resulttype.def) or
is_ansistring(tbinarynode(right).right.resulttype.def)) then
is_ansistring(tbinarynode(right).right.resulttype.def) then
begin
{ remove property flag so it'll not trigger an error }
exclude(left.flags,nf_isproperty);