* 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 -
This commit is contained in:
svenbarth 2017-05-18 20:07:57 +00:00
parent b78037f6f2
commit 0351369698

View File

@ -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