Browse Source

* check if labsym is assigned before testing if it's used globally

git-svn-id: trunk@15754 -
florian 15 years ago
parent
commit
9365eb48c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/nflw.pas

+ 1 - 1
compiler/nflw.pas

@@ -1830,7 +1830,7 @@ implementation
 
 
         include(current_procinfo.flags,pi_has_label);
         include(current_procinfo.flags,pi_has_label);
 
 
-        if labsym.nonlocal then
+        if assigned(labsym) and labsym.nonlocal then        
           include(current_procinfo.flags,pi_has_interproclabel);
           include(current_procinfo.flags,pi_has_interproclabel);
 
 
         if assigned(left) then
         if assigned(left) then