Explorar o código

+ internal assembler: early check for empty asmlists.

git-svn-id: trunk@28629 -
sergei %!s(int64=11) %!d(string=hai) anos
pai
achega
6fd8a26ae1
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      compiler/assemble.pas

+ 2 - 1
compiler/assemble.pas

@@ -1736,7 +1736,8 @@ Implementation
         if not(tf_section_threadvars in target_info.flags) then
           exclude(to_do,al_threadvars);
         for i:=low(TasmlistType) to high(TasmlistType) do
-          if (i in to_do) and (current_asmdata.asmlists[i]<>nil) then
+          if (i in to_do) and (current_asmdata.asmlists[i]<>nil) and
+             (not current_asmdata.asmlists[i].empty) then
             addlist(current_asmdata.asmlists[i]);
 
         if SmartAsm then