* fixed invalid class typecasts in rol/ror handling

git-svn-id: trunk@12703 -
This commit is contained in:
Jonas Maebe 2009-02-07 21:21:43 +00:00
parent ef7d9c7a41
commit 0a14c8824e

View File

@ -728,7 +728,8 @@ implementation
op1,op2 : tnode;
begin
{ one or two parameters? }
if assigned(tcallparanode(left).right) then
if (left.nodetype=callparan) and
assigned(tcallparanode(left).right) then
begin
op1:=tcallparanode(tcallparanode(left).right).left;
op2:=tcallparanode(left).left;
@ -749,7 +750,8 @@ implementation
end;
location_force_reg(current_asmdata.CurrAsmList,location,location.size,false);
if assigned(tcallparanode(left).right) then
if (left.nodetype=callparan) and
assigned(tcallparanode(left).right) then
begin
secondpass(op2);
{ rotating by a constant directly coded: }