ソースを参照

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

Sven/Sarah Barth 8 ヶ月 前
コミット
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));