Преглед изворни кода

dbgllvm: fix crash for files without procedures/functions

Jonas Maebe пре 3 година
родитељ
комит
d1aaeff832
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      compiler/llvm/dbgllvm.pas

+ 1 - 0
compiler/llvm/dbgllvm.pas

@@ -2120,6 +2120,7 @@ implementation
         lang: tdwarf_source_language;
         objcruntimeversion: longint;
       begin
+        ensuremetainit;
         if (ds_dwarf_cpp in current_settings.debugswitches) then
           lang:=DW_LANG_C_plus_plus
         else