Преглед на файлове

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

Jonas Maebe преди 2 години
родител
ревизия
c5cdfbd9c0
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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: