* loadvmtaddrnode accesses global data only when left.nodetype=typen.

git-svn-id: trunk@26742 -
This commit is contained in:
sergei 2014-02-09 17:44:14 +00:00
parent 25fc10b556
commit 07ce8f46a4

View File

@ -231,7 +231,8 @@ implementation
begin
result:=nil;
expectloc:=LOC_REGISTER;
if (cs_create_pic in current_settings.moduleswitches) then
if (left.nodetype=typen) and
(cs_create_pic in current_settings.moduleswitches) then
include(current_procinfo.flags,pi_needs_got);
if left.nodetype<>typen then
begin