浏览代码

* remove check for expectloc<>location.loc, it doesn't work anymore for
temprefn,blockn causing too much warnings in extdebug

git-svn-id: trunk@1542 -

peter 20 年之前
父节点
当前提交
a0b9dd48c9
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      compiler/pass_2.pas

+ 1 - 3
compiler/pass_2.pas

@@ -179,9 +179,7 @@ implementation
             if (not codegenerror) then
             if (not codegenerror) then
              begin
              begin
                if (p.location.loc=LOC_INVALID) then
                if (p.location.loc=LOC_INVALID) then
-                 Comment(V_Warning,'Location not set in secondpass: '+nodetype2str[p.nodetype])
-               else if (p.location.loc<>p.expectloc) then
-                 Comment(V_Warning,'Location is different in secondpass: '+nodetype2str[p.nodetype]);
+                 Comment(V_Warning,'Location not set in secondpass: '+nodetype2str[p.nodetype]);
              end;
              end;
 {$endif EXTDEBUG}
 {$endif EXTDEBUG}
             if codegenerror then
             if codegenerror then