浏览代码

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

git-svn-id: trunk@26742 -
sergei 11 年之前
父节点
当前提交
07ce8f46a4
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/nmem.pas

+ 2 - 1
compiler/nmem.pas

@@ -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