Преглед изворни кода

* 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));