summaryrefslogtreecommitdiff
path: root/compiler/optloop.pas
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2014-02-07 20:40:42 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2014-02-07 20:40:42 +0000
commit5378467b1eb7f7d01ad2ec4cf829455457e574ab (patch)
tree315d43c6eee4d71225867a4a76083a1663cf26f6 /compiler/optloop.pas
parentd438a751ba175857aa2a766a59b487bc258f7063 (diff)
downloadfpc-5378467b1eb7f7d01ad2ec4cf829455457e574ab.tar.gz
+ nf_addr_taken: it marks nodes which address is taken
+ check if tnodeflags is 4 bytes or less * do not do cse on expressions which address is taken git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@26713 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/optloop.pas')
-rw-r--r--compiler/optloop.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optloop.pas b/compiler/optloop.pas
index 0000b3048b..1d1f6662f1 100644
--- a/compiler/optloop.pas
+++ b/compiler/optloop.pas
@@ -86,7 +86,7 @@ unit optloop;
((n.nodetype=temprefn) and (preplaceinfo(arg)^.node.nodetype=temprefn) and
(ttemprefnode(n).tempinfo=ttemprefnode(preplaceinfo(arg)^.node).tempinfo)) then
begin
- if n.flags*[nf_modify,nf_write]<>[] then
+ if n.flags*[nf_modify,nf_write,nf_address_taken]<>[] then
internalerror(2012090402);
n.free;
n:=cordconstnode.create(preplaceinfo(arg)^.value,preplaceinfo(arg)^.node.resultdef,false);