mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-27 15:13:41 +02:00
* decide more sophisticately if a temp. var is needed for fixing #40618
This commit is contained in:
parent
27a2a04279
commit
d44cae14f5
@ -958,7 +958,7 @@ implementation
|
||||
caddnode.create_internal(equaln,left.getcopy,cordconstnode.create(flabels^._low,left.resultdef,false)),
|
||||
pcaseblock(blocks[flabels^.blockid])^.statement,elseblock);
|
||||
end
|
||||
else if left.nodetype in [loadn,temprefn] then
|
||||
else if not(might_have_sideeffects(left,[mhs_exceptions])) and (node_complexity(left)<=1) then
|
||||
begin
|
||||
result:=cifnode.create_internal(
|
||||
caddnode.create_internal(andn,
|
||||
|
Loading…
Reference in New Issue
Block a user