mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-04 14:47:17 +01:00
* fixed invalid class typecasts in rol/ror handling
git-svn-id: trunk@12703 -
This commit is contained in:
parent
ef7d9c7a41
commit
0a14c8824e
@ -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: }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user