浏览代码

* do not create an fpc_zeromem node if size=0

git-svn-id: trunk@27224 -
florian 11 年之前
父节点
当前提交
04464b8622
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/psub.pas

+ 1 - 1
compiler/psub.pas

@@ -217,7 +217,7 @@ implementation
          exit;
         with tabstractnormalvarsym(p) do
          begin
-           if vo_is_default_var in varoptions then
+           if (vo_is_default_var in varoptions) and (vardef.size>0) then
              begin
                b:=tblocknode(arg);
                b.left:=cstatementnode.create(