mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-17 22:49:21 +02:00
* use resultdef for the type of the resulting zero const from the '0*x' and
'0 and x' optimization git-svn-id: trunk@36040 -
This commit is contained in:
parent
f26a844b19
commit
546e993c25
@ -623,7 +623,7 @@ implementation
|
|||||||
andn,muln:
|
andn,muln:
|
||||||
if (cs_opt_level4 in current_settings.optimizerswitches) or
|
if (cs_opt_level4 in current_settings.optimizerswitches) or
|
||||||
not might_have_sideeffects(right) then
|
not might_have_sideeffects(right) then
|
||||||
result:=cordconstnode.create(0,right.resultdef,true);
|
result:=cordconstnode.create(0,resultdef,true);
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
else if tordconstnode(left).value = 1 then
|
else if tordconstnode(left).value = 1 then
|
||||||
|
Loading…
Reference in New Issue
Block a user