* set reused left node to nil for JVM loadvmtaddrnodes that need to call a

helper
  * never call a helper for classrefdefs (in that case we have to load the
    classrefdef itself, not the classrefdef for the class representing
    classrefdefs)

git-svn-id: branches/jvmbackend@18575 -
This commit is contained in:
Jonas Maebe 2011-08-20 08:11:54 +00:00
parent 0706cb5eb6
commit 1dca48bce5

View File

@ -236,7 +236,8 @@ implementation
left:=nil;
end
else if is_javaclass(left.resultdef) and
(left.nodetype<>typen) then
(left.nodetype<>typen) and
(left.resultdef.typ<>classrefdef) then
begin
{ call java.lang.Object.getClass() }
vs:=search_struct_member(tobjectdef(left.resultdef),'GETCLASS');
@ -245,6 +246,8 @@ implementation
internalerror(2011041901);
result:=ccallnode.create(nil,tprocsym(vs),vs.owner,left,[]);
inserttypeconv_explicit(result,resultdef);
{ reused }
left:=nil;
end
else
firstpass(left)