浏览代码

* don't try to check whether the size of from and to in type conversion nodes
are the same in case of open arrays (their size can't be determined at
compile time) -- this is just a sanity check, which can't be performed in
this case

git-svn-id: trunk@33979 -

Jonas Maebe 9 年之前
父节点
当前提交
2d1023140a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compiler/llvm/nllvmcnv.pas

+ 2 - 0
compiler/llvm/nllvmcnv.pas

@@ -259,6 +259,8 @@ procedure tllvmtypeconvnode.second_nothing;
         if not is_void(left.resultdef) and
            not(nf_absolute in flags) and
            (left.resultdef.typ<>formaldef) and
+           not is_open_array(resultdef) and
+           not is_open_array(left.resultdef) and
           (left.resultdef.size<>resultdef.size) then
           internalerror(2014012216);
         hlcg.location_force_mem(current_asmdata.CurrAsmList,left.location,left.resultdef);