Ver Fonte

* replaced "is" test with faster field value test

git-svn-id: trunk@40156 -
Jonas Maebe há 6 anos atrás
pai
commit
011968e74b
1 ficheiros alterados com 1 adições e 1 exclusões
  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