mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 19:29:18 +02:00
* insert typeconv to ptrint for all inc(pointer) operations
git-svn-id: trunk@144 -
This commit is contained in:
parent
5007b18a23
commit
f67de71de2
@ -2171,11 +2171,12 @@ implementation
|
|||||||
CGMessage(parser_e_illegal_expression);
|
CGMessage(parser_e_illegal_expression);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
begin
|
||||||
{ no, create constant 1 }
|
{ no, create constant 1 }
|
||||||
if (tcallparanode(left).left.resulttype.def.deftype <> pointerdef) then
|
hpp := cordconstnode.create(1,tcallparanode(left).left.resulttype,false);
|
||||||
hpp := cordconstnode.create(1,tcallparanode(left).left.resulttype,false)
|
end;
|
||||||
else
|
if (tcallparanode(left).left.resulttype.def.deftype=pointerdef) then
|
||||||
hpp := cordconstnode.create(1,ptrinttype,false);
|
inserttypeconv_internal(hpp,ptrinttype);
|
||||||
{ make sure we don't call functions part of the left node twice (and generally }
|
{ make sure we don't call functions part of the left node twice (and generally }
|
||||||
{ optimize the code generation) }
|
{ optimize the code generation) }
|
||||||
if node_complexity(tcallparanode(left).left) > 1 then
|
if node_complexity(tcallparanode(left).left) > 1 then
|
||||||
|
Loading…
Reference in New Issue
Block a user