Browse Source

* 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 years ago
parent
commit
0351369698
1 changed files with 1 additions and 2 deletions
  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