mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 02:29:12 +02:00
* don't swap and/or boolean operations, they always need to be evaluated in
the regular order (caused internalerror 200709253 while compiling tests/test/jvm/trange3, not sure why it wasn't a problem before) git-svn-id: trunk@35349 -
This commit is contained in:
parent
7013a879c3
commit
098d64b631
@ -372,6 +372,8 @@ interface
|
|||||||
|
|
||||||
procedure tjvmaddnode.pass_left_right;
|
procedure tjvmaddnode.pass_left_right;
|
||||||
begin
|
begin
|
||||||
|
if not((nodetype in [orn,andn]) and
|
||||||
|
is_boolean(left.resultdef)) then
|
||||||
swapleftright;
|
swapleftright;
|
||||||
inherited pass_left_right;
|
inherited pass_left_right;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user