+ internal assembler: early check for empty asmlists.

git-svn-id: trunk@28629 -
This commit is contained in:
sergei 2014-09-08 23:26:20 +00:00
parent 84245a6e0c
commit 6fd8a26ae1

View File

@ -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