Переглянути джерело

* 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 }
         addstatement(newstatement,ctempdeletenode.create(temp2));
-        if assigned(assnode) then
-          addstatement(newstatement,assnode);
+        addstatement(newstatement,assnode);
         { the last statement should return the value as
           location and type, this is done be referencing the
           temp and converting it first from a persistent temp to