소스 검색

+ 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 ***********************************');