瀏覽代碼

* don't cast the succeeded node succn to a tcallparanode (it's usually a tloadnode or something similar instead)

Sven/Sarah Barth 6 月之前
父節點
當前提交
d3c3b79e79
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/ninl.pas

+ 1 - 1
compiler/ninl.pas

@@ -6227,7 +6227,7 @@ implementation
              cmpn:=cmpn.getcopy;
              inserttypeconv_internal(cmpn,resultdef);
              addstatement(stmt,
-               cassignmentnode.create(tcallparanode(succn),
+               cassignmentnode.create(succn,
                  caddnode.create(equaln,cmpn,
                    ctemprefnode.create(tmp))));
              addstatement(stmt,ctempdeletenode.create_normal_temp(tmp));