瀏覽代碼

* when taking the address of an expression for a with-statement, make
it a typed address to prevent unnecessary checkcast instructions
on the JVM target

git-svn-id: branches/jvmbackend@18740 -

Jonas Maebe 14 年之前
父節點
當前提交
48d63f2c75
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/pstatmnt.pas

+ 1 - 0
compiler/pstatmnt.pas

@@ -632,6 +632,7 @@ implementation
                 if not hasimplicitderef then
                   begin
                     valuenode:=caddrnode.create_internal_nomark(valuenode);
+                    include(valuenode.flags,nf_typedaddr);
                     refnode:=cderefnode.create(refnode);
                     fillchar(refnode.fileinfo,sizeof(tfileposinfo),0);
                   end;