@@ -1173,10 +1173,13 @@ implementation
begin
with taicpu(curtai).oper[curop]^.ref^ do
+ symbol.decrefs;
symboldata:=hp2.previous;
symbol:=tai_label(hp2.previous).labsym;
+ symbol.increfs;
end;
- removeref:=true;
+ if not tai_label(curdatatai).labsym.is_used then
+ removeref:=true;
break;
hp2:=tai(hp2.next);