浏览代码

+ propagate pointer constants

florian 1 年之前
父节点
当前提交
13fc4075f5
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/optconstprop.pas

+ 2 - 1
compiler/optconstprop.pas

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