2
0
Эх сурвалжийг харах

* 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 жил өмнө
parent
commit
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;