2
0
Эх сурвалжийг харах

* ngenutil.tnodeutils.sym_maybe_initialize: don't use "is" operator, but corresponding is_* functions

git-svn-id: trunk@36617 -
svenbarth 8 жил өмнө
parent
commit
a301bf75ea

+ 2 - 5
compiler/ngenutil.pas

@@ -328,11 +328,8 @@ implementation
             which might contain record with management operators }
             which might contain record with management operators }
           ((tsym(p).typ = staticvarsym) and
           ((tsym(p).typ = staticvarsym) and
            (
            (
-            (tabstractvarsym(p).vardef is trecorddef) or
-            (
-             (tabstractvarsym(p).vardef is tobjectdef) and
-             (tobjectdef(tabstractvarsym(p).vardef).objecttype = odt_object)
-            )
+             is_record(tabstractvarsym(p).vardef) or
+             is_object(tabstractvarsym(p).vardef)
            )
            )
           )
           )
          ) and
          ) and