mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 07:34:28 +02:00
* Fixed issue with stripped typeconvs causing problems with inline functions (internal error 200307043)
This commit is contained in:
parent
57f8450f94
commit
d39c7e3974
@ -350,7 +350,16 @@ unit optconstprop;
|
||||
(tloadnode(l).symtable.symtabletype=staticsymtable)
|
||||
)
|
||||
)) or
|
||||
(l.nodetype = temprefn)) and
|
||||
{ Don't propagate if the node is a tempref used as a
|
||||
function result. This causes problems with inline
|
||||
functions (Internal Error 200307043) }
|
||||
((l.nodetype = temprefn) and
|
||||
(
|
||||
PPropagateInfo(arg)^.pure_function or
|
||||
not (nf_is_funcret in l.flags)
|
||||
)
|
||||
)
|
||||
) and
|
||||
(is_constintnode(a.right) or
|
||||
is_constboolnode(a.right) or
|
||||
is_constcharnode(a.right) or
|
||||
|
Loading…
Reference in New Issue
Block a user