* assume external variables are in a different segment in the huge memory model

git-svn-id: trunk@31517 -
This commit is contained in:
nickysn 2015-09-04 19:39:55 +00:00
parent 2087290802
commit 69042574b2

View File

@ -192,7 +192,7 @@ implementation
{ Normal (or external) variable }
else
begin
if gvs.Owner.iscurrentunit then
if not (vo_is_external in gvs.varoptions) and gvs.Owner.iscurrentunit then
begin
inherited pass_generate_code;
exit;