summaryrefslogtreecommitdiff
path: root/compiler/optloop.pas
diff options
context:
space:
mode:
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);