Browse Source

+ propagate pointer constants

florian 1 năm trước cách đây
mục cha
commit
13fc4075f5
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      compiler/optconstprop.pas

+ 2 - 1
compiler/optconstprop.pas

@@ -347,7 +347,8 @@ unit optconstprop;
                         is_constboolnode(a.right) or
                         is_constboolnode(a.right) or
                         is_constcharnode(a.right) or
                         is_constcharnode(a.right) or
                         is_constenumnode(a.right) or
                         is_constenumnode(a.right) or
-                        is_conststringnode(a.right)) then
+                        is_conststringnode(a.right) or
+                        is_constpointernode(a.right)) then
                       begin
                       begin
 {$ifdef DEBUG_CONSTPROP}
 {$ifdef DEBUG_CONSTPROP}
                         writeln('******************************* propagating ***********************************');
                         writeln('******************************* propagating ***********************************');