mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-07-06 03:26:33 +02:00
* give an internal error in second_int_to_bool() if left.expectloc was not
in [LOC_FLAGS,LOC_JUMP], but it's actual location is one of those git-svn-id: trunk@29587 -
This commit is contained in:
parent
ff25f5c923
commit
2c3aa7cee0
@ -176,6 +176,11 @@ interface
|
|||||||
if (nf_explicit in flags) and
|
if (nf_explicit in flags) and
|
||||||
not(left.location.loc in [LOC_FLAGS,LOC_JUMP]) then
|
not(left.location.loc in [LOC_FLAGS,LOC_JUMP]) then
|
||||||
begin
|
begin
|
||||||
|
{ overriding methods must be able to know in advance whether this
|
||||||
|
code path will be taken by checking expectloc, so they can call
|
||||||
|
the inherited method in that case }
|
||||||
|
if left.expectloc in [LOC_FLAGS,LOC_JUMP] then
|
||||||
|
internalerror(2014122901);
|
||||||
location_copy(location,left.location);
|
location_copy(location,left.location);
|
||||||
newsize:=def_cgsize(resultdef);
|
newsize:=def_cgsize(resultdef);
|
||||||
{ change of size? change sign only if location is LOC_(C)REGISTER? Then we have to sign/zero-extend }
|
{ change of size? change sign only if location is LOC_(C)REGISTER? Then we have to sign/zero-extend }
|
||||||
|
Loading…
Reference in New Issue
Block a user