浏览代码

* ttypeconvnode.typecheck_arrayconstructor_to_dynarray: the assignment node of the temp array to the resulting array always needs to exist, so remove the assigned() check

git-svn-id: trunk@36245 -
svenbarth 8 年之前
父节点
当前提交
0351369698
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      compiler/ncnv.pas

+ 1 - 2
compiler/ncnv.pas

@@ -1959,8 +1959,7 @@ implementation
           ));
           ));
         { add assignment statememnts }
         { add assignment statememnts }
         addstatement(newstatement,ctempdeletenode.create(temp2));
         addstatement(newstatement,ctempdeletenode.create(temp2));
-        if assigned(assnode) then
-          addstatement(newstatement,assnode);
+        addstatement(newstatement,assnode);
         { the last statement should return the value as
         { the last statement should return the value as
           location and type, this is done be referencing the
           location and type, this is done be referencing the
           temp and converting it first from a persistent temp to
           temp and converting it first from a persistent temp to