소스 검색

* replaced "is" test with faster field value test

git-svn-id: trunk@40156 -
Jonas Maebe 6 년 전
부모
커밋
011968e74b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/ncal.pas

+ 1 - 1
compiler/ncal.pas

@@ -4594,7 +4594,7 @@ implementation
              ((tloadnode(n).symtable.symtabletype = staticsymtable) and
               (tloadnode(n).symtable = TSymtable(arg))) or
              { if the addr of the symbol is taken somewhere, it can be also non-local }
-             ((tloadnode(n).symtableentry is tabstractvarsym) and
+             ((tloadnode(n).symtableentry.typ in [localvarsym,paravarsym,staticvarsym]) and
 	      (tabstractvarsym(tloadnode(n).symtableentry).addr_taken))
             )
            ) or