Explorar o código

* fixed crash for global constants after previous change

git-svn-id: branches/jvmbackend@18525 -
Jonas Maebe %!s(int64=14) %!d(string=hai) anos
pai
achega
f75a5895d8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      compiler/agjasmin.pas

+ 2 - 1
compiler/agjasmin.pas

@@ -929,7 +929,8 @@ implementation
              constsym:
                begin
                  { multiple procedures can have constants with the same name }
-                 if tdef(sym.owner.defowner).typ<>procdef then
+                 if not assigned(sym.owner.defowner) or
+                    (tdef(sym.owner.defowner).typ<>procdef) then
                    WriteConstSym(tconstsym(sym));
                end;
              procsym: