소스 검색

* implementation of fix from r22376 without using introspection

git-svn-id: trunk@22446 -
Jonas Maebe 13 년 전
부모
커밋
944c1172ee
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/ncgutil.pas

+ 1 - 1
compiler/ncgutil.pas

@@ -1739,7 +1739,7 @@ implementation
         case n.nodetype of
           loadn:
             begin
-              if tloadnode(n).symtableentry.inheritsfrom(tabstractvarsym) and
+              if (tloadnode(n).symtableentry.typ in [localvarsym,paravarsym,staticvarsym]) and
                  (tabstractvarsym(tloadnode(n).symtableentry).varoptions * [vo_is_dll_var, vo_is_thread_var] = []) and
                  not assigned(tloadnode(n).left) and
                  ((tloadnode(n).symtableentry <> rr^.ressym) or