Просмотр исходного кода

* 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 лет назад
Родитель
Сommit
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;