浏览代码

* optimizing length(<dyn. type>)=0 is not possible for jvm

git-svn-id: trunk@43280 -
florian 5 年之前
父节点
当前提交
ee3258c0da
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      compiler/nadd.pas

+ 4 - 1
compiler/nadd.pas

@@ -1203,8 +1203,11 @@ implementation
                         ;
                     end;
                   end
+{$ifndef jvm}
                 else if (nodetype=equaln) and MatchAndTransformNodesCommutative(left,right,@IsLengthZero,@TransformLengthZero,Result) then
-                   exit;
+                   exit
+{$endif jvm}
+                   ;
               end;
 
             { using sqr(x) for reals instead of x*x might reduces register pressure and/or