mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 17:09:10 +02:00
* append optimization also for constant strings
git-svn-id: trunk@1950 -
This commit is contained in:
parent
198aa2e72a
commit
24d972c012
@ -521,9 +521,10 @@ implementation
|
|||||||
{ opportunity quite difficult to detect (JM) }
|
{ opportunity quite difficult to detect (JM) }
|
||||||
resulttypepass(tbinarynode(right).left);
|
resulttypepass(tbinarynode(right).left);
|
||||||
resulttypepass(tbinarynode(right).right);
|
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_shortstring(tbinarynode(right).right.resulttype.def) or
|
||||||
is_ansistring(tbinarynode(right).right.resulttype.def)) then
|
is_ansistring(tbinarynode(right).right.resulttype.def) then
|
||||||
begin
|
begin
|
||||||
{ remove property flag so it'll not trigger an error }
|
{ remove property flag so it'll not trigger an error }
|
||||||
exclude(left.flags,nf_isproperty);
|
exclude(left.flags,nf_isproperty);
|
||||||
|
Loading…
Reference in New Issue
Block a user