mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 23:42:34 +02:00
* vecn: don't use left.location.reference.alignment if left is not in a
LOC_(C)REFERENCE git-svn-id: trunk@34545 -
This commit is contained in:
parent
0afbe85aab
commit
db171702f3
@ -867,10 +867,10 @@ implementation
|
|||||||
|
|
||||||
newsize:=def_cgsize(resultdef);
|
newsize:=def_cgsize(resultdef);
|
||||||
secondpass(left);
|
secondpass(left);
|
||||||
if left.location.loc=LOC_CREFERENCE then
|
if left.location.loc in [LOC_CREFERENCE,LOC_REFERENCE] then
|
||||||
location_reset_ref(location,LOC_CREFERENCE,newsize,left.location.reference.alignment)
|
location_reset_ref(location,left.location.loc,newsize,left.location.reference.alignment)
|
||||||
else
|
else
|
||||||
location_reset_ref(location,LOC_REFERENCE,newsize,left.location.reference.alignment);
|
location_reset_ref(location,LOC_REFERENCE,newsize,resultdef.alignment);
|
||||||
|
|
||||||
{ an ansistring needs to be dereferenced }
|
{ an ansistring needs to be dereferenced }
|
||||||
if is_ansistring(left.resultdef) or
|
if is_ansistring(left.resultdef) or
|
||||||
|
Loading…
Reference in New Issue
Block a user