Explorar el Código

dbgllvm: fix crash for files without procedures/functions

Jonas Maebe hace 3 años
padre
commit
d1aaeff832
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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