Răsfoiți Sursa

dwarf-eh: don't emit header if there's no data to emit

Jonas Maebe 2 ani în urmă
părinte
comite
c5cdfbd9c0
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      compiler/cfidwarf.pas

+ 2 - 0
compiler/cfidwarf.pas

@@ -338,6 +338,8 @@ implementation
         fdeofslabel, curpos: tasmlabel;
         tc             : tai_const;
       begin
+        if DwarfList.Empty then
+          exit;
         CurrentLSDALabel:=nil;
         case datatype of
           dt_none: