mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 12:39:25 +02:00
* fixed a bug, which caused ptr(nonconst, const) to be incorrectly inlined as a const
git-svn-id: trunk@24571 -
This commit is contained in:
parent
8b1e621665
commit
d300116419
@ -3044,7 +3044,8 @@ implementation
|
||||
{ handle predefined procedures }
|
||||
is_const:=(po_internconst in procdefinition.procoptions) and
|
||||
((block_type in [bt_const,bt_type,bt_const_type,bt_var_type]) or
|
||||
(assigned(left) and (tcallparanode(left).left.nodetype in [realconstn,ordconstn])));
|
||||
(assigned(left) and ((tcallparanode(left).left.nodetype in [realconstn,ordconstn])
|
||||
and not assigned(tcallparanode(left).right) or (tcallparanode(left).right.nodetype in [realconstn,ordconstn]))));
|
||||
if (procdefinition.proccalloption=pocall_internproc) or is_const then
|
||||
begin
|
||||
if assigned(left) then
|
||||
|
Loading…
Reference in New Issue
Block a user